Skip to content

Commit 2d581a5

Browse files
acasademontandig
authored andcommitted
Fix SF 4.3 deprecation with Dotenv (#158)
1 parent 537a2c6 commit 2d581a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Bootstraps/Symfony.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public function getApplication()
5353

5454
// environment loading as of Symfony 3.3
5555
if (!getenv('APP_ENV') && class_exists('Symfony\Component\Dotenv\Dotenv') && file_exists(realpath('.env'))) {
56-
(new \Symfony\Component\Dotenv\Dotenv())->load(realpath('.env'));
56+
(new \Symfony\Component\Dotenv\Dotenv(true))->load(realpath('.env'));
5757
}
5858

5959
$namespace = getenv('APP_KERNEL_NAMESPACE') ?: '\App\\';

0 commit comments

Comments
 (0)