Skip to content

Commit 30acebc

Browse files
authored
Use fourth argument of RoutingConfigurator instead of non-existent method
1 parent 908f3d5 commit 30acebc

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

routing.rst

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1249,7 +1249,12 @@ the common configuration using options when importing the routes.
12491249
return function (RoutingConfigurator $routes) {
12501250
// use the optional fourth argument of import() to exclude some files
12511251
// 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+
)
12531258
// this is added to the beginning of all imported route URLs
12541259
->prefix('/blog')
12551260
@@ -1262,9 +1267,6 @@ the common configuration using options when importing the routes.
12621267
12631268
// these requirements are added to all imported routes
12641269
->requirements(['_locale' => 'en|es|fr'])
1265-
1266-
// you can optionally exclude some files/subdirectories when loading annotations
1267-
->exclude('../../src/Controller/{DebugEmailController}.php')
12681270
;
12691271
};
12701272

0 commit comments

Comments
 (0)