@@ -1443,7 +1443,8 @@ when importing the routes.
1443
1443
# trailing_slash_on_root: false
1444
1444
1445
1445
# you can optionally exclude some files/subdirectories when loading annotations
1446
- # exclude: '../../src/Controller/{DebugEmailController}.php'
1446
+ # (the value must be a string or an array of PHP glob patterns)
1447
+ # exclude: '../../src/Controller/{Debug*Controller.php}'
1447
1448
1448
1449
.. code-block :: xml
1449
1450
@@ -1458,12 +1459,13 @@ when importing the routes.
1458
1459
the 'prefix' value is added to the beginning of all imported route URLs
1459
1460
the 'name-prefix' value is added to the beginning of all imported route names
1460
1461
the 'exclude' option defines the files or subdirectories ignored when loading annotations
1462
+ (the value must be a PHP glob pattern and you can repeat this option any number of times)
1461
1463
-->
1462
1464
<import resource =" ../../src/Controller/"
1463
1465
type =" annotation"
1464
1466
prefix =" /blog"
1465
1467
name-prefix =" blog_"
1466
- exclude =" ../../src/Controller/{DebugEmailController} .php" >
1468
+ exclude =" ../../src/Controller/{Debug*Controller .php} " >
1467
1469
<!-- these requirements are added to all imported routes -->
1468
1470
<requirement key =" _locale" >en|es|fr</requirement >
1469
1471
</import >
@@ -1489,7 +1491,8 @@ when importing the routes.
1489
1491
false,
1490
1492
// the optional fourth argument is used to exclude some files
1491
1493
// or subdirectories when loading annotations
1492
- '../../src/Controller/{DebugEmailController}.php'
1494
+ // (the value must be a string or an array of PHP glob patterns)
1495
+ '../../src/Controller/{Debug*Controller.php}'
1493
1496
)
1494
1497
// this is added to the beginning of all imported route URLs
1495
1498
->prefix('/blog')
0 commit comments