Skip to content

[DependencyInjection] Fix "proxy" tag: resolve its parameters and pass it to child definitions #46448

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
May 27, 2022

Conversation

nicolas-grekas
Copy link
Member

Q A
Branch? 4.4
Bug fix? yes
New feature? no
Deprecations? no
Tickets -
License MIT
Doc PR -

Forgotten in #27697

"proxy" tags are special: they must follow like the "lazy" attribute of definitions.

@stof
Copy link
Member

stof commented May 24, 2022

Btw, this makes me think that the clean representation for the proxy type might be a dedicated property in the definition rather than a tag (but this cannot be changed in 4.4 anyway)

@nicolas-grekas
Copy link
Member Author

nicolas-grekas commented May 24, 2022

the clean representation for the proxy type might be a dedicated property in the definition

Mostly yes, or make setLazy() accept an array of proxified interfaces. But the current way works and this is quite a niche feature so I'd keep it as is for the time being.

@fabpot
Copy link
Member

fabpot commented May 27, 2022

Thank you @nicolas-grekas.

@fabpot fabpot merged commit dffd4e5 into symfony:4.4 May 27, 2022
@nicolas-grekas nicolas-grekas deleted the di-proxy branch May 31, 2022 14:07
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