Skip to content

Commit f3e0f90

Browse files
authored
feature: add the ability to search for a route
1 parent 0665ada commit f3e0f90

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

routing/debug.rst

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,20 @@ the route name as the command argument:
3131
3232
$ php bin/console debug:router article_show
3333
34+
35+
If you want to search a route by name it works too, it will then ask you what route you want to get information for:
36+
37+
.. code-block:: terminal
38+
39+
$ php bin/console debug:router blo
40+
41+
Select one of the following routes to display its information:
42+
[0] blog
43+
[1] blog_show
44+
>
45+
46+
If you choose ``blog_show`` it will show the route information.
47+
3448
Likewise, if you want to test whether a URL matches a given route, use the
3549
``router:match`` command. This is useful to debug routing issues and find out
3650
which route is associated with the given URL:

0 commit comments

Comments
 (0)