Skip to content

Commit ae80257

Browse files
Adding exclude to PHP code sample
Was missing there...
1 parent 8bfa680 commit ae80257

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

routing.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1203,7 +1203,7 @@ the common configuration using options when importing the routes.
12031203
# Uncomment this option to make that URL "/blog" instead
12041204
# trailing_slash_on_root: false
12051205
# you can optionally exclude some files/subdirectories when loading annotations
1206-
# exclude: '../../src/Controller/{DebugEmailController}.php'
1206+
exclude: '../../src/Controller/{DebugEmailController}.php'
12071207
12081208
.. code-block:: xml
12091209
@@ -1255,6 +1255,7 @@ the common configuration using options when importing the routes.
12551255
->namePrefix('blog_')
12561256
// these requirements are added to all imported routes
12571257
->requirements(['_locale' => 'en|es|fr'])
1258+
->exclude('../../src/Controller/{DebugEmailController}.php')
12581259
;
12591260
};
12601261

0 commit comments

Comments
 (0)