From 8091dafa06c70a8861848a6fcbfe13f76c3a43ad Mon Sep 17 00:00:00 2001 From: Jeroen <1517978+jeroeny@users.noreply.github.com> Date: Thu, 2 Sep 2021 15:50:15 +0200 Subject: [PATCH] Use fourth argument of RoutingConfigurator instead of non-existent method --- routing.rst | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/routing.rst b/routing.rst index b41371f42ce..000d856ebeb 100644 --- a/routing.rst +++ b/routing.rst @@ -1247,7 +1247,11 @@ the common configuration using options when importing the routes. return function (RoutingConfigurator $routes) { // use the optional fourth argument of import() to exclude some files // or subdirectories when loading annotations - $routes->import('../../src/Controller/', 'annotation') + $routes->import( + resource: '../../src/Controller/', + type: 'annotation', + exclude: '../../src/Controller/{DebugEmailController}.php' + ) // this is added to the beginning of all imported route URLs ->prefix('/blog') @@ -1260,9 +1264,6 @@ the common configuration using options when importing the routes. // these requirements are added to all imported routes ->requirements(['_locale' => 'en|es|fr']) - - // you can optionally exclude some files/subdirectories when loading annotations - ->exclude('../../src/Controller/{DebugEmailController}.php') ; };