Skip to content

[FrameworkBundle] Update the http_method_override default value explanation #18284

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 1 commit into from
May 9, 2023
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
9 changes: 8 additions & 1 deletion reference/configuration/framework.rst
Original file line number Diff line number Diff line change
Expand Up @@ -176,14 +176,21 @@ 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
: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.

.. seealso::

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