Commit 23c79a03 authored by Taylor Otwell's avatar Taylor Otwell

only define environment constant if it hasnt already been defined.

parent af36cb3d
...@@ -56,8 +56,6 @@ $constants = array( ...@@ -56,8 +56,6 @@ $constants = array(
constants($constants); constants($constants);
unset($constants);
/** /**
* Set the Laravel environment configuration path constant. * Set the Laravel environment configuration path constant.
* The environment is controlled by setting an environment * The environment is controlled by setting an environment
...@@ -65,6 +63,6 @@ unset($constants); ...@@ -65,6 +63,6 @@ unset($constants);
*/ */
$environment = (isset($_SERVER['LARAVEL_ENV'])) ? $_SERVER['LARAVEL_ENV'] : ''; $environment = (isset($_SERVER['LARAVEL_ENV'])) ? $_SERVER['LARAVEL_ENV'] : '';
define('ENV_CONFIG_PATH', $environment); constants(array('ENV_CONFIG_PATH' => $environment));
unset($environment); unset($constants, $environment);
\ No newline at end of file \ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment