Skip to content

Commit b8af29c

Browse files
committed
Reword
1 parent faed230 commit b8af29c

File tree

1 file changed

+15
-9
lines changed

1 file changed

+15
-9
lines changed

routing.rst

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -434,6 +434,21 @@ evaluates them:
434434
blog_show ANY ANY ANY /blog/{slug}
435435
---------------- ------- ------- ----- --------------------------------------------
436436
437+
# pass this option to also display all the defined route aliases
438+
$ php bin/console debug:router --show-aliases
439+
440+
# pass this option to only display routes that match the given HTTP method
441+
# (you can use the special value ANY to see routes that match any method)
442+
$ php bin/console debug:router --method=GET
443+
$ php bin/console debug:router --method=ANY
444+
445+
# pass the option more than once to display the routes that match all the given methods
446+
$ php bin/console debug:router --method=GET --method=PATCH
447+
448+
.. versionadded:: 7.3
449+
450+
The ``--method`` option was introduced in Symfony 7.3.
451+
437452
Pass the name (or part of the name) of some route to this argument to print the
438453
route details:
439454

@@ -451,15 +466,6 @@ route details:
451466
| | utf8: true |
452467
+-------------+---------------------------------------------------------+
453468
454-
.. tip::
455-
456-
Use the ``--show-aliases`` option to show all available aliases for a given
457-
route.
458-
459-
.. tip::
460-
461-
Use the ``--method`` option to filter routes by HTTP method. For example, to only show routes that use the ``GET`` method, add ``--method=GET``
462-
463469
The other command is called ``router:match`` and it shows which route will match
464470
the given URL. It's useful to find out why some URL is not executing the
465471
controller action that you expect:

0 commit comments

Comments
 (0)