File tree 1 file changed +16
-2
lines changed
1 file changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -92,15 +92,29 @@ in that directory are parsed and put into the routing.
92
92
93
93
return $collection;
94
94
95
- Prefixing Imported Routes
96
- ~~~~~~~~~~~~~~~~~~~~~~~~~
95
+ .. _prefixing-imported-routes :
96
+
97
+ Prefixing the URLs of Imported Routes
98
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
97
99
98
100
You can also choose to provide a "prefix" for the imported routes. For example,
99
101
suppose you want to prefix all routes in the AppBundle with ``/site `` (e.g.
100
102
``/site/blog/{slug} `` instead of ``/blog/{slug} ``):
101
103
102
104
.. configuration-block ::
103
105
106
+ .. code-block :: php-annotations
107
+
108
+ use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
109
+
110
+ /**
111
+ * @Route("/site")
112
+ */
113
+ class DefaultController
114
+ {
115
+ // ...
116
+ }
117
+
104
118
.. code-block :: yaml
105
119
106
120
# app/config/routing.yml
You can’t perform that action at this time.
0 commit comments