From 2d781a87482e3dca92a3e0d26740561583fe0736 Mon Sep 17 00:00:00 2001 From: Hamza Amrouche Date: Fri, 9 Feb 2018 16:12:06 +0100 Subject: [PATCH] feature: add the ability to search for a route --- routing/debug.rst | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/routing/debug.rst b/routing/debug.rst index e9f7f3829b0..0384895af43 100644 --- a/routing/debug.rst +++ b/routing/debug.rst @@ -31,6 +31,14 @@ the route name as the command argument: $ php bin/console debug:router article_show + # or use part of the name to search for routes + $ php bin/console debug:router blo + + Select one of the matching routes: + [0] blog + [1] blog_show + > + Likewise, if you want to test whether a URL matches a given route, use the ``router:match`` command. This is useful to debug routing issues and find out which route is associated with the given URL: