Skip to content

Commit 5cc3ea2

Browse files
committed
minor #18514 Update the default value of the http_method_override option (javiereguiluz)
This PR was merged into the 7.0 branch. Discussion ---------- Update the default value of the http_method_override option Same as #18513 but for 7.0. Commits ------- 699a89f Update the default value of the http_method_override option
2 parents 181bba9 + 699a89f commit 5cc3ea2

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

reference/configuration/framework.rst

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -172,26 +172,14 @@ Cache-Control extension (see RFC 5861).
172172
http_method_override
173173
~~~~~~~~~~~~~~~~~~~~
174174

175-
**type**: ``boolean`` **default**: (see explanation below)
175+
**type**: ``boolean`` **default**: ``false``
176176

177177
This determines whether the ``_method`` request parameter is used as the
178178
intended HTTP method on POST requests. If enabled, the
179179
:method:`Request::enableHttpMethodParameterOverride <Symfony\\Component\\HttpFoundation\\Request::enableHttpMethodParameterOverride>`
180180
method gets called automatically. It becomes the service container parameter
181181
named ``kernel.http_method_override``.
182182

183-
The **default value** is:
184-
185-
* ``true``, if you have an existing application that you've upgraded from an older
186-
Symfony version without resyncing the :doc:`Symfony Flex </setup/flex>` recipes;
187-
* ``false``, if you've created a new Symfony application or updated the Symfony
188-
Flex recipes. This is also the default value starting from Symfony 7.0.
189-
190-
.. deprecated:: 6.1
191-
192-
Not setting a value explicitly for this option is deprecated since Symfony 6.1
193-
because the default value will change to ``false`` in Symfony 7.0.
194-
195183
.. seealso::
196184

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

0 commit comments

Comments
 (0)