From b15ace85651305758c8a66e86d3349415fbb7bab Mon Sep 17 00:00:00 2001 From: Julio Montoya Date: Fri, 29 Jan 2021 17:47:51 +0100 Subject: [PATCH] Update from 5.2 --- config/services.yaml | 1 + public/index.php | 9 --------- 2 files changed, 1 insertion(+), 9 deletions(-) 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();