Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[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

Merged
merged 2 commits into from
Feb 4, 2018

Conversation

nicolas-grekas
Copy link
Member

@nicolas-grekas nicolas-grekas commented Jan 31, 2018

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.)

@stof
Copy link
Member

stof commented Jan 31, 2018

New classes should have tests

{
foreach ($this->glob($resource, false, $globResource) as $path => $info) {
$this->import($path);
}
Copy link
Member

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.

Copy link
Member Author

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.

@sroze
Copy link
Contributor

sroze commented Feb 1, 2018

@stof with tests 👍

Copy link
Member Author

@nicolas-grekas nicolas-grekas left a 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!

@nicolas-grekas
Copy link
Member Author

Votes pending

@nicolas-grekas
Copy link
Member Author

Thank you @sroze.

@nicolas-grekas nicolas-grekas merged commit 945c753 into symfony:3.4 Feb 4, 2018
nicolas-grekas added a commit that referenced this pull request Feb 4, 2018
…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
@nicolas-grekas nicolas-grekas deleted the glob-loader-tracking branch February 19, 2018 10:35
This was referenced Mar 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.