Skip to content

Commit eba2282

Browse files
feature #31587 [Routing][Config] Allow patterns of resources to be excluded from config loading (tristanbes)
This PR was merged into the 4.4 branch. Discussion ---------- [Routing][Config] Allow patterns of resources to be excluded from config loading | Q | A | ------------- | --- | Branch? | master | Bug fix? | no | New feature? | yes | BC breaks? | no | Deprecations? | yes | Tests pass? | yes | Fixed tickets | #31516 | License | MIT | Doc PR | not yet The PR will fix the following RFC: #31516 Like resource loading for services, this PR offers a way to exclude patterns of resources like: ```yml // config/routes/annotations.yaml controllers: resource: ../../src/Controller/* type: annotation exclude: '../src/Controller/{DebugEmailController}.php' ``` All the annotation routes inside `Controller/` will be loaded in this example except all the one present inside the `Controller/DebugEmailController.php` Commits ------- 332ff8811c [Routing][Config] Allow patterns of resources to be excluded from config loading
2 parents 48d5245 + e6093bc commit eba2282

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Tests/Loader/GlobFileLoaderTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public function testLoadAddsTheGlobResourceToTheContainer()
3838

3939
class GlobFileLoaderWithoutImport extends GlobFileLoader
4040
{
41-
public function import($resource, $type = null, $ignoreErrors = false, $sourceResource = null)
41+
public function import($resource, $type = null, $ignoreErrors = false, $sourceResource = null, $exclude = null)
4242
{
4343
}
4444
}

0 commit comments

Comments
 (0)