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.
11991199 # these requirements are added to all imported routes
12001200 requirements :
12011201 _locale : ' en|es|fr'
1202+
12021203 # An imported route with an empty URL will become "/blog/"
12031204 # Uncomment this option to make that URL "/blog" instead
12041205 # trailing_slash_on_root: false
1206+
12051207 # you can optionally exclude some files/subdirectories when loading annotations
12061208 # exclude: '../../src/Controller/{DebugEmailController}.php'
12071209
@@ -1248,13 +1250,18 @@ the common configuration using options when importing the routes.
12481250 $routes->import('../../src/Controller/', 'annotation')
12491251 // this is added to the beginning of all imported route URLs
12501252 ->prefix('/blog')
1253+
12511254 // An imported route with an empty URL will become "/blog/"
12521255 // Pass FALSE as the second argument to make that URL "/blog" instead
12531256 // ->prefix('/blog', false)
1257+
12541258 // this is added to the beginning of all imported route names
12551259 ->namePrefix('blog_')
1260+
12561261 // these requirements are added to all imported routes
12571262 ->requirements(['_locale' => 'en|es|fr'])
1263+
1264+ // you can optionally exclude some files/subdirectories when loading annotations
12581265 ->exclude('../../src/Controller/{DebugEmailController}.php')
12591266 ;
12601267 };
You can’t perform that action at this time.
0 commit comments