Skip to content

Commit d9037fd

Browse files
authored
Merge pull request php-pm#174 from acasademont/load_env
Add support for the new .env files structure
2 parents 99cd009 + ab4e599 commit d9037fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Bootstraps/Symfony.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public function getApplication()
5757
if (!getenv('APP_ENV') && class_exists(Dotenv::class) && file_exists(realpath('.env'))) {
5858
//Symfony >=5.1 compatibility
5959
if (method_exists(Dotenv::class, 'usePutenv')) {
60-
(new Dotenv())->usePutenv()->load(realpath('.env'));
60+
(new Dotenv())->usePutenv()->bootEnv(realpath('.env'));
6161
} else {
6262
(new Dotenv(true))->load(realpath('.env'));
6363
}

0 commit comments

Comments
 (0)