File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -1199,9 +1199,11 @@ the common configuration using options when importing the routes.
1199
1199
# these requirements are added to all imported routes
1200
1200
requirements :
1201
1201
_locale : ' en|es|fr'
1202
+
1202
1203
# An imported route with an empty URL will become "/blog/"
1203
1204
# Uncomment this option to make that URL "/blog" instead
1204
1205
# trailing_slash_on_root: false
1206
+
1205
1207
# you can optionally exclude some files/subdirectories when loading annotations
1206
1208
# exclude: '../../src/Controller/{DebugEmailController}.php'
1207
1209
@@ -1248,13 +1250,18 @@ the common configuration using options when importing the routes.
1248
1250
$routes->import('../../src/Controller/', 'annotation')
1249
1251
// this is added to the beginning of all imported route URLs
1250
1252
->prefix('/blog')
1253
+
1251
1254
// An imported route with an empty URL will become "/blog/"
1252
1255
// Pass FALSE as the second argument to make that URL "/blog" instead
1253
1256
// ->prefix('/blog', false)
1257
+
1254
1258
// this is added to the beginning of all imported route names
1255
1259
->namePrefix('blog_')
1260
+
1256
1261
// these requirements are added to all imported routes
1257
1262
->requirements(['_locale' => 'en|es|fr'])
1263
+
1264
+ // you can optionally exclude some files/subdirectories when loading annotations
1258
1265
->exclude('../../src/Controller/{DebugEmailController}.php')
1259
1266
;
1260
1267
};
You can’t perform that action at this time.
0 commit comments