File tree Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -1052,6 +1052,17 @@ the route name after the command:
1052
1052
1053
1053
$ php app/console router:debug article_show
1054
1054
1055
+ .. versionadded :: 2.1
1056
+ The ``router:match `` command was added in Symfony 2.1
1057
+
1058
+ You can check which, if any, route matches a path with the ``router:match ``
1059
+ console command:
1060
+
1061
+ .. code-block :: bash
1062
+
1063
+ $ php app/console router:match /articles/en/2012/article.rss
1064
+ Route " article_show" matches
1065
+
1055
1066
.. index ::
1056
1067
single: Routing; Generating URLs
1057
1068
@@ -1123,9 +1134,9 @@ method:
1123
1134
on server information supplied by PHP. When generating absolute URLs for
1124
1135
scripts run from the command line, you'll need to manually set the desired
1125
1136
host on the ``RequestContext `` object:
1126
-
1137
+
1127
1138
.. code-block :: php
1128
-
1139
+
1129
1140
$router->getContext()->setHost('www.example.com');
1130
1141
1131
1142
.. index ::
You can’t perform that action at this time.
0 commit comments