diff --git a/reference/configuration/framework.rst b/reference/configuration/framework.rst index 5a71b31b122..aff01af4c9c 100644 --- a/reference/configuration/framework.rst +++ b/reference/configuration/framework.rst @@ -176,7 +176,7 @@ bootstrap the Symfony framework on a cache hit. http_method_override ~~~~~~~~~~~~~~~~~~~~ -**type**: ``boolean`` **default**: ``true`` +**type**: ``boolean`` **default**: (see explanation below) This determines whether the ``_method`` request parameter is used as the intended HTTP method on POST requests. If enabled, the @@ -184,6 +184,13 @@ intended HTTP method on POST requests. If enabled, the method gets called automatically. It becomes the service container parameter named ``kernel.http_method_override``. +The **default value** is: + +* ``true``, if you have an existing application that you've upgraded from an older + Symfony version without resyncing the :doc:`Symfony Flex ` recipes; +* ``false``, if you've created a new Symfony application or updated the Symfony + Flex recipes. This is also the default value starting from Symfony 7.0. + .. seealso:: :ref:`Changing the Action and HTTP Method ` of