From ab4e5990eb704d60ab270f6d402a6177b1ee76d1 Mon Sep 17 00:00:00 2001 From: Albert Casademont Date: Wed, 8 Jul 2020 12:26:22 +0200 Subject: [PATCH] Add support for the new .env files structure --- src/Bootstraps/Symfony.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Bootstraps/Symfony.php b/src/Bootstraps/Symfony.php index 74f20c8..2ecf668 100644 --- a/src/Bootstraps/Symfony.php +++ b/src/Bootstraps/Symfony.php @@ -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')); }