@@ -1,9 +1,9 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | // @note should we fully deprecate the globals? |
| 3 | - define('ERDIKO_ROOT', getenv('ERDIKO_ROOT')); |
|
| 4 | - define('ERDIKO_PUBLIC', ERDIKO_ROOT.'/public'); |
|
| 5 | - define('ERDIKO_APP', ERDIKO_ROOT.'/app'); |
|
| 6 | - define('ERDIKO_VAR', ERDIKO_ROOT.'/var'); |
|
| 3 | + define('ERDIKO_ROOT', getenv('ERDIKO_ROOT')); |
|
| 4 | + define('ERDIKO_PUBLIC', ERDIKO_ROOT.'/public'); |
|
| 5 | + define('ERDIKO_APP', ERDIKO_ROOT.'/app'); |
|
| 6 | + define('ERDIKO_VAR', ERDIKO_ROOT.'/var'); |
|
| 7 | 7 | |
| 8 | 8 | // @todo move this function |
| 9 | 9 | if (PHP_SAPI == 'cli-server') { |
@@ -17,8 +17,8 @@ |
||
| 17 | 17 | } |
| 18 | 18 | |
| 19 | 19 | require_once 'src/autoload.php'; |
| 20 | -require_once ERDIKO_ROOT . '/vendor/autoload.php'; |
|
| 20 | +require_once ERDIKO_ROOT.'/vendor/autoload.php'; |
|
| 21 | 21 | |
| 22 | 22 | // Set a default context if none specified |
| 23 | -if(empty(getenv('ERDIKO_CONTEXT'))) |
|
| 23 | +if (empty(getenv('ERDIKO_CONTEXT'))) |
|
| 24 | 24 | putenv("ERDIKO_CONTEXT=default"); |
| 25 | 25 | \ No newline at end of file |
@@ -20,5 +20,6 @@ |
||
| 20 | 20 | require_once ERDIKO_ROOT . '/vendor/autoload.php'; |
| 21 | 21 | |
| 22 | 22 | // Set a default context if none specified |
| 23 | -if(empty(getenv('ERDIKO_CONTEXT'))) |
|
| 24 | - putenv("ERDIKO_CONTEXT=default"); |
|
| 25 | 23 | \ No newline at end of file |
| 24 | +if(empty(getenv('ERDIKO_CONTEXT'))) { |
|
| 25 | + putenv("ERDIKO_CONTEXT=default"); |
|
| 26 | +} |
|