Movatterモバイル変換


[0]ホーム

URL:


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

Sign up
Appearance settings

[DependencyInjection] FixXmlFileLoader not respecting when env for services#58299

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Conversation

@CipherdevNL
Copy link

QA
Branch?5.4
Bug fix?yes
New feature?no
Deprecations?no
IssuesFix#58293
LicenseMIT

This PR resolves a bug inside theXmlFileLoader that causes the loading of all services inside a<when env="..." /> elements even when not in the defined environment.

My knowledge about xPath is very limited, but it seems like the parser interpets.// as// (anywhere) while most like./ (relative) was meant, due to the passing of an$root element. Based on the added test and passing of existing test this change seems like sufficient to respect the<when env="...." />

@CipherdevNLCipherdevNLforce-pushed the5.4_58293-fix-xmlfileloader-when-env branch from4c4e3bf to2ec78d9CompareSeptember 18, 2024 12:40
@CipherdevNL
Copy link
Author

Small bump to check if there is anything additional required from my side.

@nicolas-grekasnicolas-grekas changed the title[DependencyInjection] FixXmlFileLoader not respecting when env for…[DependencyInjection] FixXmlFileLoader not respecting when env for servicesSep 28, 2024
@nicolas-grekas
Copy link
Member

Thank you@CipherdevNL.

@nicolas-grekasnicolas-grekas merged commitfe74ff3 intosymfony:5.4Sep 28, 2024
1 check passed
This was referencedOct 27, 2024
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@xabbuhxabbuhxabbuh left review comments

@alexandre-dauboisalexandre-dauboisalexandre-daubois left review comments

@nicolas-grekasnicolas-grekasnicolas-grekas approved these changes

Assignees

No one assigned

Projects

None yet

Milestone

5.4

Development

Successfully merging this pull request may close these issues.

5 participants

@CipherdevNL@nicolas-grekas@xabbuh@alexandre-daubois@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp