Skip to content

Commit 6d62d60

Browse files
committed
Fixes and simplifications
1 parent 7b2d5d0 commit 6d62d60

File tree

1 file changed

+10
-25
lines changed

1 file changed

+10
-25
lines changed

routing/debug.rst

Lines changed: 10 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,16 @@ your application:
1818

1919
.. code-block:: text
2020
21-
------------------ -------- -------- ------ ----------------------------------------------
22-
Name Method Scheme Host Path
23-
------------------ -------- -------- ------ ----------------------------------------------
24-
homepage ANY ANY ANY /
25-
contact GET ANY ANY /contact
26-
contact_process POST ANY ANY /contact
27-
article_show ANY ANY ANY /articles/{_locale}/{year}/{title}.{_format}
28-
blog ANY ANY ANY /blog/{page}
29-
blog_show ANY ANY ANY /blog/{slug}
21+
------------------ -------- -------- ------ ----------------------------------------------
22+
Name Method Scheme Host Path
23+
------------------ -------- -------- ------ ----------------------------------------------
24+
homepage ANY ANY ANY /
25+
contact GET ANY ANY /contact
26+
contact_process POST ANY ANY /contact
27+
article_show ANY ANY ANY /articles/{_locale}/{year}/{title}.{_format}
28+
blog ANY ANY ANY /blog/{page}
29+
blog_show ANY ANY ANY /blog/{slug}
30+
------------------ -------- -------- ------ ----------------------------------------------
3031
3132
You can also get very specific information on a single route by including
3233
the route name after the command:
@@ -47,19 +48,3 @@ This command will print which route the URL matches.
4748
.. code-block:: text
4849
4950
Route "blog_show" matches
50-
51-
If you want to list the controller configured with each route, you can use the ``--show-controllers`` option:
52-
53-
.. code-block:: terminal
54-
55-
$ php app/console debug:router --show-controllers
56-
57-
This command will print a list of *all* the configured routes in your application
58-
with a new column *Controller* which shows the controller configred for a specific route:
59-
60-
.. code-block:: text
61-
62-
--------------- -------- -------- ------ -------------- ---------------------
63-
Name Method Scheme Host Path Controller
64-
--------------- -------- -------- ------ -------------- ---------------------
65-
blog_show ANY ANY ANY /blog/{slug} AppBundle:Blog:show

0 commit comments

Comments
 (0)