Skip to content

Update the default value of the http_method_override option #18514

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 1 addition & 13 deletions reference/configuration/framework.rst
Original file line number Diff line number Diff line change
Expand Up @@ -172,26 +172,14 @@ Cache-Control extension (see RFC 5861).
http_method_override
~~~~~~~~~~~~~~~~~~~~

**type**: ``boolean`` **default**: (see explanation below)
**type**: ``boolean`` **default**: ``false``

This determines whether the ``_method`` request parameter is used as the
intended HTTP method on POST requests. If enabled, the
:method:`Request::enableHttpMethodParameterOverride <Symfony\\Component\\HttpFoundation\\Request::enableHttpMethodParameterOverride>`
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 </setup/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.

.. deprecated:: 6.1

Not setting a value explicitly for this option is deprecated since Symfony 6.1
because the default value will change to ``false`` in Symfony 7.0.

.. seealso::

:ref:`Changing the Action and HTTP Method <forms-change-action-method>` of
Expand Down