-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[DI][Routing] Fix tracking of globbed resources #25989
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[DI][Routing] Fix tracking of globbed resources #25989
Conversation
New classes should have tests |
{ | ||
foreach ($this->glob($resource, false, $globResource) as $path => $info) { | ||
$this->import($path); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't need any of the parent class's special glob code that's in import
? I don't fully understand that code - it came from #22985 - but I know you do ;). Just double-checking.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The parent extra logic is here to autodetect glob when it's not explicit. Here, it is explicit, so no need.
@stof with tests 👍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
failure unrelated
thanks @sroze for the tests!
Votes pending |
Thank you @sroze. |
…rekas, sroze) This PR was merged into the 3.4 branch. Discussion ---------- [DI][Routing] Fix tracking of globbed resources | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #25904 | License | MIT | Doc PR | - The current `GlobFileLoader` in `Config` misses resource tracking, so we can't use it and have to use a per-component one instead. (deps=high failures will be fixed after merging up to master.) Commits ------- 945c753 Add tests for glob loaders ad98c1f [DI][Routing] Fix tracking of globbed resources
The current
GlobFileLoader
inConfig
misses resource tracking, so we can't use it and have to use a per-component one instead.(deps=high failures will be fixed after merging up to master.)