Skip to content

Commit 4e673df

Browse files
author
Kevin Weber
committed
Issue #2378. Minor additions. Implemented suggestions by WouterJ.
1 parent 99add41 commit 4e673df

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

book/routing.rst

+15-1
Original file line numberDiff line numberDiff line change
@@ -763,6 +763,7 @@ a slash. URLs matching this route might look like:
763763

764764
* ``/articles/en/2010/my-post``
765765
* ``/articles/fr/2010/my-post.rss``
766+
* ``/articles/en/2013/my-latest-post.html``
766767

767768
.. _book-routing-format-param:
768769

@@ -1035,7 +1036,7 @@ the command by running the following from the root of your project.
10351036
10361037
$ php app/console router:debug
10371038
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
10391040
your application:
10401041

10411042
.. code-block:: text
@@ -1054,6 +1055,19 @@ the route name after the command:
10541055
10551056
$ php app/console router:debug article_show
10561057
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+
10571071
.. index::
10581072
single: Routing; Generating URLs
10591073

0 commit comments

Comments
 (0)