From 2621c5a4cc65a24c0cd3965769de7ff23fbe3a65 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Noco=C5=84?= Date: Thu, 8 Jul 2021 13:40:09 +0200 Subject: [PATCH] Changed how the Symfony Reverse proxy is enabled (#152) --- tests/SymfonyProxy/enable_symfony_proxy.patch | 35 +++++++++---------- 1 file changed, 17 insertions(+), 18 deletions(-) diff --git a/tests/SymfonyProxy/enable_symfony_proxy.patch b/tests/SymfonyProxy/enable_symfony_proxy.patch index 96f5d6c3..eb5decfe 100644 --- a/tests/SymfonyProxy/enable_symfony_proxy.patch +++ b/tests/SymfonyProxy/enable_symfony_proxy.patch @@ -1,33 +1,32 @@ -From 25a9974e189564d3bcc20a1477c4962d7ffa24bc Mon Sep 17 00:00:00 2001 +From fe9ff7bd801f978cfc50aae0411bb3eefdd3059a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Noco=C5=84?= -Date: Fri, 19 Feb 2021 17:58:14 +0100 -Subject: [PATCH] Added cache kernel +Date: Wed, 7 Jul 2021 15:29:57 +0200 +Subject: [PATCH] Enabled Symfony Reverse Proxy --- - public/index.php | 3 +++ - 1 file changed, 3 insertions(+) + public/index.php | 7 ++++++- + 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/public/index.php b/public/index.php -index 3bcee0b..f97d416 100644 +index 9982c21..03ac40a 100644 --- a/public/index.php +++ b/public/index.php -@@ -1,6 +1,7 @@ +@@ -1,9 +1,14 @@ handle($request); - $response->send(); + require_once dirname(__DIR__).'/vendor/autoload_runtime.php'; + + return function (array $context) { +- return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']); ++ $kernel = new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']); ++ Request::enableHttpMethodParameterOverride(); ++ ++ return new AppCache($kernel); + }; -- 2.30.0