File tree Expand file tree Collapse file tree 1 file changed +15
-9
lines changed
Expand file tree Collapse file tree 1 file changed +15
-9
lines changed Original file line number Diff line number Diff 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+
437452Pass the name (or part of the name) of some route to this argument to print the
438453route 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
464470the given URL. It's useful to find out why some URL is not executing the
465471controller action that you expect:
You can’t perform that action at this time.
0 commit comments