Skip to content

Commit

Permalink
Criado arquivo de configuração para o código legado
Browse files Browse the repository at this point in the history
  • Loading branch information
edersoares committed Sep 5, 2018
1 parent 50344a0 commit b898988
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ APP_KEY=
APP_DEBUG=true
APP_URL=http://localhost

LEGACY_CODE=true
LEGACY_DISPLAY_ERRORS=false
LEGACY_PATH=ieducar

LOG_CHANNEL=stack

DB_CONNECTION=pgsql
Expand Down
41 changes: 41 additions & 0 deletions config/legacy.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
<?php

return [

/*
|--------------------------------------------------------------------------
| Legacy Code
|--------------------------------------------------------------------------
|
| This value determines which application is running. Default is the new
| version using Laravel structure. Another case your application is running
| using i-Educar legacy code.
|
*/

'code' => env('LEGACY_CODE', true),

/*
|--------------------------------------------------------------------------
| Display Errors
|--------------------------------------------------------------------------
|
| This value determines if the errors that legacy code throws is showed for
| user in debug mode.
|
*/

'display_errors' => env('LEGACY_DISPLAY_ERRORS', false),

/*
|--------------------------------------------------------------------------
| Path
|--------------------------------------------------------------------------
|
| This value determines the path of the legacy code.
|
*/

'path' => env('LEGACY_PATH', 'ieducar'),

];

0 comments on commit b898988

Please sign in to comment.