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 @@ -1711,9 +1711,14 @@ when importing the routes.
1711
1711
use Symfony\Component\Routing\Loader\Configurator\RoutingConfigurator;
1712
1712
1713
1713
return function (RoutingConfigurator $routes) {
1714
- // use the optional fourth argument of import() to exclude some files
1715
- // or subdirectories when loading annotations
1716
- $routes->import('../../src/Controller/', 'annotation')
1714
+ $routes->import(
1715
+ '../../src/Controller/',
1716
+ 'annotation',
1717
+ false,
1718
+ // the optional fourth argument is used to exclude some files
1719
+ // or subdirectories when loading annotations
1720
+ '../../src/Controller/{DebugEmailController}.php'
1721
+ )
1717
1722
// this is added to the beginning of all imported route URLs
1718
1723
->prefix('/blog')
1719
1724
@@ -1726,9 +1731,6 @@ when importing the routes.
1726
1731
1727
1732
// these requirements are added to all imported routes
1728
1733
->requirements(['_locale' => 'en|es|fr'])
1729
-
1730
- // you can optionally exclude some files/subdirectories when loading annotations
1731
- ->exclude('../../src/Controller/{DebugEmailController}.php')
1732
1734
;
1733
1735
};
1734
1736
You can’t perform that action at this time.
0 commit comments