Skip to content

Commit 688e850

Browse files
SimperfitAmrouche Hamza
authored and
Amrouche Hamza
committed
feature: add the ability to search for a route
1 parent 0665ada commit 688e850

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

routing/debug.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,16 @@ the route name as the command argument:
3131
3232
$ php bin/console debug:router article_show
3333
34+
# or use part of the name to search for routes
35+
$ php bin/console debug:router blo
36+
37+
Select one of the matching routes:
38+
[0] blog
39+
[1] blog_show
40+
>
41+
42+
If you choose ``blog_show`` it will show the route information.
43+
3444
Likewise, if you want to test whether a URL matches a given route, use the
3545
``router:match`` command. This is useful to debug routing issues and find out
3646
which route is associated with the given URL:

0 commit comments

Comments
 (0)