From c8c15fe67f44195d2f4935fe1af1c6f2f75b9096 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20B=C3=B6hmer?= Date: Fri, 22 Jul 2022 00:30:17 +0200 Subject: [PATCH] Allow http_method_override again needed for deletion controllers Fixes issue #149 and #146 --- config/packages/framework.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/config/packages/framework.yaml b/config/packages/framework.yaml index f4039501..12b04723 100644 --- a/config/packages/framework.yaml +++ b/config/packages/framework.yaml @@ -2,7 +2,10 @@ framework: secret: '%env(APP_SECRET)%' csrf_protection: true - http_method_override: false + + # Must be set to true, to enable the change of HTTP methhod via _method parameter, otherwise our delete routines does not work anymore + # TODO: Rework delete routines to work without _method parameter as it is not recommended anymore (see https://github.com/symfony/symfony/issues/45278) + http_method_override: true # Allow users to configure trusted hosts via .env variables # see https://symfony.com/doc/current/reference/configuration/framework.html#trusted-hosts