Skip to content

Commit 83d0d4d

Browse files
committed
Minor tweak
1 parent 16c1939 commit 83d0d4d

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

routing.rst

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1245,12 +1245,13 @@ the common configuration using options when importing the routes.
12451245
use Symfony\Component\Routing\Loader\Configurator\RoutingConfigurator;
12461246
12471247
return function (RoutingConfigurator $routes) {
1248-
// use the optional fourth argument of import() to exclude some files
1249-
// or subdirectories when loading annotations
12501248
$routes->import(
1251-
resource: '../../src/Controller/',
1252-
type: 'annotation',
1253-
exclude: '../../src/Controller/{DebugEmailController}.php'
1249+
'../../src/Controller/',
1250+
'annotation',
1251+
false,
1252+
// the optional fourth argument is used to exclude some files
1253+
// or subdirectories when loading annotations
1254+
'../../src/Controller/{DebugEmailController}.php'
12541255
)
12551256
// this is added to the beginning of all imported route URLs
12561257
->prefix('/blog')

0 commit comments

Comments
 (0)