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.
12471247 return function (RoutingConfigurator $routes) {
12481248 // use the optional fourth argument of import() to exclude some files
12491249 // 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+ )
12511255 // this is added to the beginning of all imported route URLs
12521256 ->prefix('/blog')
12531257
@@ -1260,9 +1264,6 @@ the common configuration using options when importing the routes.
12601264
12611265 // these requirements are added to all imported routes
12621266 ->requirements(['_locale' => 'en|es|fr'])
1263-
1264- // you can optionally exclude some files/subdirectories when loading annotations
1265- ->exclude('../../src/Controller/{DebugEmailController}.php')
12661267 ;
12671268 };
12681269
You can’t perform that action at this time.
0 commit comments