8000 [FrameworkBundle] Fix setting decorated services during tests by nicolas-grekas · Pull Request #50710 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content

[FrameworkBundle] Fix setting decorated services during tests #50710

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 1 commit into from
Jun 24, 2023

Conversation

nicolas-grekas
Copy link
Member
@nicolas-grekas nicolas-grekas commented Jun 20, 2023
Q A
Branch? 6.3
Bug fix? yes
New feature? no
Deprecations? no
Tickets -
License MIT
Doc PR -

When a service is decorated, setting this service with the test container should set the inner service, not the outer one.

Spotted while trying to set a custom scoped http-client in a test case, which was failing because this replaced the traceable+retryable+etc decoration chain we put on top of custom clients.

@stof
Copy link
Member
stof commented Jun 20, 2023

Test failures are related to the PR.

@nicolas-grekas
Copy link
Member Author

Not anymore :)

@fabpot
A9AC Copy link
Member
fabpot commented Jun 24, 2023

Thank you @nicolas-grekas.

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.

4 participants
0