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