Skip to content

Commit dcf44c4

Browse files
committed
minor #17566 Update routing.rst (micter59)
This PR was squashed before being merged into the 5.4 branch. Discussion ---------- Update routing.rst Add a note about allowing the http_method_override in the framework.yml file symfony/symfony#48658 Commits ------- 576df85 Update routing.rst
2 parents a9a2cdc + 576df85 commit dcf44c4

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

routing.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,13 @@ Use the ``methods`` option to restrict the verbs each route should respond to:
304304
``_method`` with the method to use (e.g. ``<input type="hidden" name="_method" value="PUT">``).
305305
If you create your forms with :doc:`Symfony Forms </forms>` this is done
306306
automatically for you.
307+
Also note that ```framework.http_method_override``` needs to be set for this to work :
308+
309+
.. code-block:: yaml
310+
311+
# config/packages/framework.yaml
312+
framework:
313+
http_method_override: true
307314
308315
.. _routing-matching-expressions:
309316

0 commit comments

Comments
 (0)