diff --git a/config/services.yaml b/config/services.yaml index ba8b71c971..3bf512356d 100644 --- a/config/services.yaml +++ b/config/services.yaml @@ -6,6 +6,7 @@ parameters: secret: '%env(APP_SECRET)%' locale: '%env(APP_LOCALE)%' installed: '%env(APP_INSTALLED)%' + container.dumper.inline_factories: true twig: form: resources: diff --git a/public/index.php b/public/index.php index d5ca952b9f..4e9bdc21a9 100644 --- a/public/index.php +++ b/public/index.php @@ -25,16 +25,7 @@ if ($_SERVER['APP_DEBUG']) { Debug::enable(); } -if ($trustedProxies = $_SERVER['TRUSTED_PROXIES'] ?? false) { - Request::setTrustedProxies(explode(',', $trustedProxies), Request::HEADER_X_FORWARDED_FOR | Request::HEADER_X_FORWARDED_PORT | Request::HEADER_X_FORWARDED_PROTO); -} - -if ($trustedHosts = $_SERVER['TRUSTED_HOSTS'] ?? false) { - Request::setTrustedHosts([$trustedHosts]); -} - $kernel = new Kernel($_SERVER['APP_ENV'], (bool) $_SERVER['APP_DEBUG']); - $request = Request::createFromGlobals(); $response = $kernel->handle($request); $response->send();