Skip to content

Commit f9e1295

Browse files
committed
[HttpFoundation] Add deprecation notice for overriding certain HTTP methods
1 parent 59faf76 commit f9e1295

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

reference/configuration/framework.rst

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2126,10 +2126,6 @@ named ``kernel.http_method_override``.
21262126
allowed_http_method_override
21272127
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
21282128

2129-
.. versionadded:: 7.4
2130-
2131-
The ``allowed_http_method_override`` option was introduced in Symfony 7.4.
2132-
21332129
**type**: ``array`` **default**: ``null``
21342130

21352131
This option controls which HTTP methods can be overridden via the ``_method``
@@ -2200,6 +2196,15 @@ method::
22002196
$request = Request::createFromGlobals();
22012197
// ...
22022198

2199+
.. versionadded:: 7.4
2200+
2201+
The ``allowed_http_method_override`` option was introduced in Symfony 7.4.
2202+
2203+
.. deprecated:: 7.4
2204+
2205+
Overriding methods ``GET``, ``HEAD``, ``CONNECT`` and ``TRACE`` is deprecated
2206+
since Symfony 7.4 and will stop working in Symfony 8.0.
2207+
22032208
.. _reference-framework-ide:
22042209

22052210
ide

0 commit comments

Comments
 (0)