Skip to content

Commit ee18ef9

Browse files
committed
Tweaks
1 parent 52b500d commit ee18ef9

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

routing.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1199,9 +1199,11 @@ the common configuration using options when importing the routes.
11991199
# these requirements are added to all imported routes
12001200
requirements:
12011201
_locale: 'en|es|fr'
1202+
12021203
# An imported route with an empty URL will become "/blog/"
12031204
# Uncomment this option to make that URL "/blog" instead
12041205
# trailing_slash_on_root: false
1206+
12051207
# you can optionally exclude some files/subdirectories when loading annotations
12061208
# exclude: '../../src/Controller/{DebugEmailController}.php'
12071209
@@ -1248,13 +1250,18 @@ the common configuration using options when importing the routes.
12481250
$routes->import('../../src/Controller/', 'annotation')
12491251
// this is added to the beginning of all imported route URLs
12501252
->prefix('/blog')
1253+
12511254
// An imported route with an empty URL will become "/blog/"
12521255
// Pass FALSE as the second argument to make that URL "/blog" instead
12531256
// ->prefix('/blog', false)
1257+
12541258
// this is added to the beginning of all imported route names
12551259
->namePrefix('blog_')
1260+
12561261
// these requirements are added to all imported routes
12571262
->requirements(['_locale' => 'en|es|fr'])
1263+
1264+
// you can optionally exclude some files/subdirectories when loading annotations
12581265
->exclude('../../src/Controller/{DebugEmailController}.php')
12591266
;
12601267
};

0 commit comments

Comments
 (0)