File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -1524,9 +1524,11 @@ when importing the routes.
1524
1524
# these requirements are added to all imported routes
1525
1525
requirements :
1526
1526
_locale : ' en|es|fr'
1527
+
1527
1528
# An imported route with an empty URL will become "/blog/"
1528
1529
# Uncomment this option to make that URL "/blog" instead
1529
1530
# trailing_slash_on_root: false
1531
+
1530
1532
# you can optionally exclude some files/subdirectories when loading annotations
1531
1533
# exclude: '../../src/Controller/{DebugEmailController}.php'
1532
1534
@@ -1573,13 +1575,19 @@ when importing the routes.
1573
1575
$routes->import('../../src/Controller/', 'annotation')
1574
1576
// this is added to the beginning of all imported route URLs
1575
1577
->prefix('/blog')
1578
+
1576
1579
// An imported route with an empty URL will become "/blog/"
1577
1580
// Pass FALSE as the second argument to make that URL "/blog" instead
1578
1581
// ->prefix('/blog', false)
1582
+
1579
1583
// this is added to the beginning of all imported route names
1580
1584
->namePrefix('blog_')
1585
+
1581
1586
// these requirements are added to all imported routes
1582
1587
->requirements(['_locale' => 'en|es|fr'])
1588
+
1589
+ // you can optionally exclude some files/subdirectories when loading annotations
1590
+ ->exclude('../../src/Controller/{DebugEmailController}.php')
1583
1591
;
1584
1592
};
1585
1593
You can’t perform that action at this time.
0 commit comments