Skip to content

Commit

Permalink
Fix SF 4.3 deprecation with Dotenv (#158)
Browse files Browse the repository at this point in the history
  • Loading branch information
acasademont authored and andig committed Jul 2, 2019
1 parent 537a2c6 commit 2d581a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Bootstraps/Symfony.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public function getApplication()

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

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

0 comments on commit 2d581a5

Please sign in to comment.