Skip to content

Commit d347f6b

Browse files
committed
[symfony#2436] Putting back router:match changes
1 parent 8c6610f commit d347f6b

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

book/routing.rst

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1066,16 +1066,18 @@ the route name after the command:
10661066
10671067
$ php app/console router:debug article_show
10681068
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:
10741071

10751072
.. code-block:: bash
10761073
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
10791081
10801082
.. index::
10811083
single: Routing; Generating URLs

0 commit comments

Comments
 (0)