File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -1066,16 +1066,18 @@ the route name after the command:
1066
1066
1067
1067
$ php app/console router:debug article_show
1068
1068
1069
- .. versionadded :: 2.1
1070
- The ``router:match `` command was added in Symfony 2.1
1071
-
1072
- You can check which, if any, route matches a path with the ``router:match ``
1073
- console command:
1069
+ Likewise, if you want to test whether a URL matches a given route, you can
1070
+ use the ``router:match `` console command:
1074
1071
1075
1072
.. code-block :: bash
1076
1073
1077
- $ php app/console router:match /articles/en/2012/article.rss
1078
- Route " article_show" matches
1074
+ $ php app/console router:match /blog/my-latest-post
1075
+
1076
+ This command will print which route the URL matches.
1077
+
1078
+ .. code-block :: text
1079
+
1080
+ Route "blog_show" matches
1079
1081
1080
1082
.. index ::
1081
1083
single: Routing; Generating URLs
You can’t perform that action at this time.
0 commit comments