File tree 1 file changed +15
-1
lines changed
1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -763,6 +763,7 @@ a slash. URLs matching this route might look like:
763
763
764
764
* ``/articles/en/2010/my-post ``
765
765
* ``/articles/fr/2010/my-post.rss ``
766
+ * ``/articles/en/2013/my-latest-post.html ``
766
767
767
768
.. _book-routing-format-param :
768
769
@@ -1035,7 +1036,7 @@ the command by running the following from the root of your project.
1035
1036
1036
1037
$ php app/console router:debug
1037
1038
1038
- The command will print a helpful list of *all * the configured routes in
1039
+ This command will print a helpful list of *all * the configured routes in
1039
1040
your application:
1040
1041
1041
1042
.. code-block :: text
@@ -1054,6 +1055,19 @@ the route name after the command:
1054
1055
1055
1056
$ php app/console router:debug article_show
1056
1057
1058
+ Likewise, if you want to test whether a URL matches a given route, you can
1059
+ use the ``router:match `` console command:
1060
+
1061
+ .. code-block :: bash
1062
+
1063
+ $ php app/console router:match /blog/my-latest-post
1064
+
1065
+ This command will print which route the URL matches.
1066
+
1067
+ .. code-block :: text
1068
+
1069
+ Route "blog_show" matches
1070
+
1057
1071
.. index ::
1058
1072
single: Routing; Generating URLs
1059
1073
You can’t perform that action at this time.
0 commit comments