mirror of
https://github.com/Sylius/Sylius.git
synced 2026-07-05 20:57:12 +00:00
Fix bootstrap for Symfony 6
This commit is contained in:
parent
d3d2073427
commit
ee318e562b
1 changed files with 1 additions and 1 deletions
|
|
@ -15,7 +15,7 @@ if (is_array($env = @include dirname(__DIR__) . '/.env.local.php')) {
|
|||
throw new RuntimeException('Please run "composer require symfony/dotenv" to load the ".env" files configuring the application.');
|
||||
} else {
|
||||
// load all the .env files
|
||||
(new Dotenv(true))->loadEnv(dirname(__DIR__) . '/.env');
|
||||
(new Dotenv())->loadEnv(dirname(__DIR__) . '/.env');
|
||||
}
|
||||
|
||||
$_SERVER['APP_ENV'] = $_ENV['APP_ENV'] = ($_SERVER['APP_ENV'] ?? $_ENV['APP_ENV'] ?? null) ?: 'dev';
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue