Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 576df85

Browse files
micter59javiereguiluz
authored andcommitted
Update routing.rst
1 parent b196f16 commit 576df85

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)