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][ServiceSubscriber] Support late aliases #36454

Merged

Conversation

fancyweb
Copy link
Contributor

@fancyweb fancyweb commented Apr 15, 2020

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

A service subscriber that references a service that is aliased after optimization passes (after ResolveReferencesToAliasesPass technically) end up being dumped with the real service and not the alias.

I would consider it a bug but @nicolas-grekas told me it's a feature for him, this is why I'm submitting this on master.

@nicolas-grekas, feel free to close this one and open with your solution since you definitely know the subject better.

@nicolas-grekas
Copy link
Member

Nice catch, ok as a bug fix to me.

@fancyweb fancyweb changed the base branch from master to 4.4 April 16, 2020 16:37
@fancyweb fancyweb force-pushed the di-service-subscriber-late-alias branch from e190728 to 2415037 Compare April 16, 2020 16:37
@fancyweb
Copy link
Contributor Author

Rebased on 4.4.

@nicolas-grekas nicolas-grekas modified the milestones: next, 4.4 Apr 21, 2020
@nicolas-grekas
Copy link
Member

Thank you @fancyweb.

@nicolas-grekas nicolas-grekas merged commit 119ba3b into symfony:4.4 Apr 21, 2020
@fancyweb fancyweb deleted the di-service-subscriber-late-alias branch April 22, 2020 06:57
This was referenced Apr 28, 2020
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

3 participants