From c7e7fa53744c9eea5a623e7f6adff00b4db4db1c Mon Sep 17 00:00:00 2001 From: micter59 Date: Thu, 15 Dec 2022 10:27:19 +0100 Subject: [PATCH 1/2] Update routing.rst Add a note about allowing the http_method_override in the framework.yml file https://github.com/symfony/symfony/issues/48658 --- routing.rst | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/routing.rst b/routing.rst index 38f66eed838..05586ebe4e7 100644 --- a/routing.rst +++ b/routing.rst @@ -243,6 +243,19 @@ Use the ``methods`` option to restrict the verbs each route should respond to: ; }; +.. note:: + + To use the non-standard methods (PUT, PATCH, DELETE), don't forget to allow this in the config/packages/framework.yaml file like this : + + .. code-block:: yaml + + # config/packages/framework.yaml + framework: + http_method_override: true + + + See https://symfony.com/doc/current/reference/configuration/framework.html#http-method-override for more informations. + .. tip:: HTML forms only support ``GET`` and ``POST`` methods. If you're calling a From 0746fd3bbb0c2ccbe7894d96d73cfa831a784f6b Mon Sep 17 00:00:00 2001 From: micter59 Date: Thu, 15 Dec 2022 10:34:12 +0100 Subject: [PATCH 2/2] Update routing.rst --- routing.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routing.rst b/routing.rst index 05586ebe4e7..8be12cccac0 100644 --- a/routing.rst +++ b/routing.rst @@ -254,7 +254,7 @@ Use the ``methods`` option to restrict the verbs each route should respond to: http_method_override: true - See https://symfony.com/doc/current/reference/configuration/framework.html#http-method-override for more informations. + See https://symfony.com/doc/current/reference/configuration/framework.html#http-method-override for more information. .. tip::