Skip to content

Commit

Permalink
Update config/bootstrap.php
Browse files Browse the repository at this point in the history
  • Loading branch information
stefandoorn committed Mar 16, 2023
1 parent 4e89f1f commit 3719eae
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/Application/config/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@
$_ENV += $env;
} elseif (!class_exists(Dotenv::class)) {
throw new RuntimeException('Please run "composer require symfony/dotenv" to load the ".env" files configuring the application.');
} elseif (method_exists(Dotenv::class, 'bootEnv')) {
(new Dotenv())->bootEnv(dirname(__DIR__) . '/.env');

return;
} else {
// load all the .env files
(new Dotenv(true))->loadEnv(dirname(__DIR__) . '/.env');
Expand Down

0 comments on commit 3719eae

Please sign in to comment.