diff --git a/config/bootstrap.php b/config/bootstrap.php index 41b52b550..ffb73a1b4 100644 --- a/config/bootstrap.php +++ b/config/bootstrap.php @@ -44,7 +44,7 @@ if (is_array($env = @include dirname(__DIR__) . '/.env.local.php') && (!isset($e throw new RuntimeException('Please run "composer require symfony/dotenv" to load the ".env" files configuring the application.'); } else { // load all the .env files - (new Dotenv(false))->loadEnv(dirname(__DIR__) . '/.env'); + (new Dotenv('APP_ENV'))->loadEnv(dirname(__DIR__) . '/.env'); } $_SERVER += $_ENV;