Skip to content

Commit

Permalink
Merge pull request #174 from acasademont/load_env
Browse files Browse the repository at this point in the history
Add support for the new .env files structure
  • Loading branch information
andig authored Jul 8, 2020
2 parents 99cd009 + ab4e599 commit d9037fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Bootstraps/Symfony.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public function getApplication()
if (!getenv('APP_ENV') && class_exists(Dotenv::class) && file_exists(realpath('.env'))) {
//Symfony >=5.1 compatibility
if (method_exists(Dotenv::class, 'usePutenv')) {
(new Dotenv())->usePutenv()->load(realpath('.env'));
(new Dotenv())->usePutenv()->bootEnv(realpath('.env'));
} else {
(new Dotenv(true))->load(realpath('.env'));
}
Expand Down

0 comments on commit d9037fd

Please sign in to comment.