Dont use putenv by default

This commit is contained in:
Nyholm
2019-04-10 17:43:20 +02:00
parent 0b2a1763d5
commit 6953b33d45
2 changed files with 2 additions and 2 deletions
@@ -12,7 +12,7 @@ if (is_array($env = @include dirname(__DIR__).'/.env.local.php')) {
throw new RuntimeException('Please run "composer require symfony/dotenv" to load the ".env" files configuring the application.');
} else {
$path = dirname(__DIR__).'/.env';
$dotenv = new Dotenv();
$dotenv = new Dotenv(false);
// load all the .env files
if (method_exists($dotenv, 'loadEnv')) {
@@ -12,7 +12,7 @@ if (is_array($env = @include dirname(__DIR__).'/.env.local.php')) {
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())->loadEnv(dirname(__DIR__).'/.env');
(new Dotenv(false))->loadEnv(dirname(__DIR__).'/.env');
}
$_SERVER += $_ENV;