@@ -30,7 +30,7 @@ |
||
| 30 | 30 | Request::setTrustedHosts([$trustedHosts]); |
| 31 | 31 | } |
| 32 | 32 | |
| 33 | -$kernel = new Kernel($_SERVER['APP_ENV'], (bool) $_SERVER['APP_DEBUG']); |
|
| 33 | +$kernel = new Kernel($_SERVER['APP_ENV'], (bool)$_SERVER['APP_DEBUG']); |
|
| 34 | 34 | $request = Request::createFromGlobals(); |
| 35 | 35 | $response = $kernel->handle($request); |
| 36 | 36 | $response->send(); |
@@ -31,13 +31,13 @@ |
||
| 31 | 31 | throw new RuntimeException('Please run "composer require symfony/dotenv" to load the ".env" files configuring the application.'); |
| 32 | 32 | } else { |
| 33 | 33 | // load all the .env files |
| 34 | - (new Dotenv(false))->loadEnv(dirname(__DIR__).'/.env'); |
|
| 34 | + (new Dotenv(false))->loadEnv(dirname(__DIR__) . '/.env'); |
|
| 35 | 35 | } |
| 36 | 36 | |
| 37 | 37 | $_SERVER += $_ENV; |
| 38 | 38 | $_SERVER['APP_ENV'] = $_ENV['APP_ENV'] = ($_SERVER['APP_ENV'] ?? $_ENV['APP_ENV'] ?? null) ?: 'dev'; |
| 39 | 39 | $_SERVER['APP_DEBUG'] = $_SERVER['APP_DEBUG'] ?? $_ENV['APP_DEBUG'] ?? 'prod' !== $_SERVER['APP_ENV']; |
| 40 | -$_SERVER['APP_DEBUG'] = $_ENV['APP_DEBUG'] = (int) $_SERVER['APP_DEBUG'] || filter_var($_SERVER['APP_DEBUG'], FILTER_VALIDATE_BOOLEAN) ? '1' : '0'; |
|
| 40 | +$_SERVER['APP_DEBUG'] = $_ENV['APP_DEBUG'] = (int)$_SERVER['APP_DEBUG'] || filter_var($_SERVER['APP_DEBUG'], FILTER_VALIDATE_BOOLEAN) ? '1' : '0'; |
|
| 41 | 41 | |
| 42 | 42 | $kernelConfig = Yaml::parse(file_get_contents(realpath(__DIR__ . '/services.yaml'))); |
| 43 | 43 | if (is_readable($file = __DIR__ . '/services_custom.yaml')) { |
@@ -30,7 +30,7 @@ |
||
| 30 | 30 | Request::setTrustedHosts([$trustedHosts]); |
| 31 | 31 | } |
| 32 | 32 | |
| 33 | -$kernel = new Kernel($_SERVER['APP_ENV'], (bool) $_SERVER['APP_DEBUG']); |
|
| 33 | +$kernel = new Kernel($_SERVER['APP_ENV'], (bool)$_SERVER['APP_DEBUG']); |
|
| 34 | 34 | $request = Request::createFromGlobals(); |
| 35 | 35 | $response = $kernel->handle($request); |
| 36 | 36 | $response->send(); |