File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -1370,9 +1370,14 @@ when importing the routes.
1370
1370
use Symfony\Component\Routing\Loader\Configurator\RoutingConfigurator;
1371
1371
1372
1372
return function (RoutingConfigurator $routes) {
1373
- // use the optional fourth argument of import() to exclude some files
1374
- // or subdirectories when loading annotations
1375
- $routes->import('../../src/Controller/', 'annotation')
1373
+ $routes->import(
1374
+ '../../src/Controller/',
1375
+ 'annotation',
1376
+ false,
1377
+ // the optional fourth argument is used to exclude some files
1378
+ // or subdirectories when loading annotations
1379
+ '../../src/Controller/{DebugEmailController}.php'
1380
+ )
1376
1381
// this is added to the beginning of all imported route URLs
1377
1382
->prefix('/blog')
1378
1383
@@ -1385,9 +1390,6 @@ when importing the routes.
1385
1390
1386
1391
// these requirements are added to all imported routes
1387
1392
->requirements(['_locale' => 'en|es|fr'])
1388
-
1389
- // you can optionally exclude some files/subdirectories when loading annotations
1390
- ->exclude('../../src/Controller/{DebugEmailController}.php')
1391
1393
;
1392
1394
};
1393
1395
You can’t perform that action at this time.
0 commit comments