diff --git a/src/Bootstraps/Symfony.php b/src/Bootstraps/Symfony.php index 944391c..b44cd9a 100644 --- a/src/Bootstraps/Symfony.php +++ b/src/Bootstraps/Symfony.php @@ -54,7 +54,7 @@ public function getApplication() } // environment loading as of Symfony 3.3 - if (!getenv('APP_ENV') && class_exists(Dotenv::class) && file_exists(realpath('.env'))) { + if (class_exists(Dotenv::class) && file_exists(realpath('.env'))) { //Symfony >=5.1 compatibility if (method_exists(Dotenv::class, 'usePutenv')) { (new Dotenv())->usePutenv()->bootEnv(realpath('.env'));