Skip to content

Commit b305277

Browse files
committed
minor #18284 [FrameworkBundle] Update the http_method_override default value explanation (javiereguiluz)
This PR was merged into the 6.2 branch. Discussion ---------- [FrameworkBundle] Update the http_method_override default value explanation Fixes #16923. I reused the explanation made by `@xabbuh` in #16923 (comment) Commits ------- f6984ab [FrameworkBundle] Update the http_method_override default value explanation
2 parents 2fd9c1a + f6984ab commit b305277

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

reference/configuration/framework.rst

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,14 +176,21 @@ bootstrap the Symfony framework on a cache hit.
176176
http_method_override
177177
~~~~~~~~~~~~~~~~~~~~
178178

179-
**type**: ``boolean`` **default**: ``true``
179+
**type**: ``boolean`` **default**: (see explanation below)
180180

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

187+
The **default value** is:
188+
189+
* ``true``, if you have an existing application that you've upgraded from an older
190+
Symfony version without resyncing the :doc:`Symfony Flex </setup/flex>` recipes;
191+
* ``false``, if you've created a new Symfony application or updated the Symfony
192+
Flex recipes. This is also the default value starting from Symfony 7.0.
193+
187194
.. seealso::
188195

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

0 commit comments

Comments
 (0)