@@ -1670,7 +1670,8 @@ when importing the routes.
1670
1670
# trailing_slash_on_root: false
1671
1671
1672
1672
# you can optionally exclude some files/subdirectories when loading annotations
1673
- # exclude: '../../src/Controller/{DebugEmailController}.php'
1673
+ # (the value must be a string or an array of PHP glob patterns)
1674
+ # exclude: '../../src/Controller/{Debug*Controller.php}'
1674
1675
1675
1676
.. code-block :: xml
1676
1677
@@ -1685,12 +1686,13 @@ when importing the routes.
1685
1686
the 'prefix' value is added to the beginning of all imported route URLs
1686
1687
the 'name-prefix' value is added to the beginning of all imported route names
1687
1688
the 'exclude' option defines the files or subdirectories ignored when loading annotations
1689
+ (the value must be a PHP glob pattern and you can repeat this option any number of times)
1688
1690
-->
1689
1691
<import resource =" ../../src/Controller/"
1690
1692
type =" annotation"
1691
1693
prefix =" /blog"
1692
1694
name-prefix =" blog_"
1693
- exclude =" ../../src/Controller/{DebugEmailController} .php" >
1695
+ exclude =" ../../src/Controller/{Debug*Controller .php} " >
1694
1696
<!-- these requirements are added to all imported routes -->
1695
1697
<requirement key =" _locale" >en|es|fr</requirement >
1696
1698
</import >
@@ -1716,7 +1718,8 @@ when importing the routes.
1716
1718
false,
1717
1719
// the optional fourth argument is used to exclude some files
1718
1720
// or subdirectories when loading annotations
1719
- '../../src/Controller/{DebugEmailController}.php'
1721
+ // (the value must be a string or an array of PHP glob patterns)
1722
+ '../../src/Controller/{Debug*Controller.php}'
1720
1723
)
1721
1724
// this is added to the beginning of all imported route URLs
1722
1725
->prefix('/blog')
0 commit comments