File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -1247,7 +1247,11 @@ the common configuration using options when importing the routes.
1247
1247
return function (RoutingConfigurator $routes) {
1248
1248
// use the optional fourth argument of import() to exclude some files
1249
1249
// or subdirectories when loading annotations
1250
- $routes->import('../../src/Controller/', 'annotation')
1250
+ $routes->import(
1251
+ resource: '../../src/Controller/',
1252
+ type: 'annotation',
1253
+ exclude: '../../src/Controller/{DebugEmailController}.php'
1254
+ )
1251
1255
// this is added to the beginning of all imported route URLs
1252
1256
->prefix('/blog')
1253
1257
@@ -1260,9 +1264,6 @@ the common configuration using options when importing the routes.
1260
1264
1261
1265
// these requirements are added to all imported routes
1262
1266
->requirements(['_locale' => 'en|es|fr'])
1263
-
1264
- // you can optionally exclude some files/subdirectories when loading annotations
1265
- ->exclude('../../src/Controller/{DebugEmailController}.php')
1266
1267
;
1267
1268
};
1268
1269
You can’t perform that action at this time.
0 commit comments