Skip to content

Issue #2378. Minor additions. Implemented suggestions by WouterJ. #2436

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 9, 2013
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion book/routing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -763,6 +763,7 @@ a slash. URLs matching this route might look like:

* ``/articles/en/2010/my-post``
* ``/articles/fr/2010/my-post.rss``
* ``/articles/en/2013/my-latest-post.html``

.. _book-routing-format-param:

Expand Down Expand Up @@ -1035,7 +1036,7 @@ the command by running the following from the root of your project.

$ php app/console router:debug

The command will print a helpful list of *all* the configured routes in
This command will print a helpful list of *all* the configured routes in
your application:

.. code-block:: text
Expand All @@ -1054,6 +1055,19 @@ the route name after the command:

$ php app/console router:debug article_show

Likewise, if you want to test whether a URL matches a given route, you can
use the ``router:match`` console command:

.. code-block:: bash

$ php app/console router:match /blog/my-latest-post

This command will print which route the URL matches.

.. code-block:: text

Route "blog_show" matches

.. index::
single: Routing; Generating URLs

Expand Down