Skip to content
Closed
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
17 changes: 17 additions & 0 deletions routing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -354,6 +354,23 @@ evaluates them:
blog_show ANY ANY ANY /blog/{slug}
---------------- ------- ------- ----- --------------------------------------------

You can sort the routes by name, path or priority using the ``--sort`` option

.. code-block:: terminal

$ php bin/console debug:router --sort=name

---------------- ------- ------- ----- --------------------------------------------
Name Method Scheme Host Path
---------------- ------- ------- ----- --------------------------------------------
article_show ANY ANY ANY /articles/{_locale}/{year}/{title}.{_format}
blog ANY ANY ANY /blog/{page}
blog_show ANY ANY ANY /blog/{slug}
contact GET ANY ANY /contact
contact_process POST ANY ANY /contact
homepage ANY ANY ANY /
---------------- ------- ------- ----- --------------------------------------------

Pass the name (or part of the name) of some route to this argument to print the
route details:

Expand Down