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')); }