The Wayback Machine - https://web.archive.org/web/20220809173216/https://github.com/symfony/symfony/pull/46448
Skip to content
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

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

Merged
merged 1 commit into from May 27, 2022

Conversation

nicolas-grekas
Copy link
Member

@nicolas-grekas nicolas-grekas commented May 24, 2022

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
stof approved these changes May 24, 2022
@stof
Copy link
Member

@stof 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 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
fabpot approved these changes May 27, 2022
@fabpot
Copy link
Member

@fabpot fabpot commented May 27, 2022

Thank you @nicolas-grekas.

@fabpot fabpot merged commit dffd4e5 into symfony:4.4 May 27, 2022
8 of 10 checks passed
@nicolas-grekas nicolas-grekas deleted the di-proxy branch May 31, 2022
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.

None yet

5 participants