Skip to content

[DependencyInjection] fix support of inherited tags in child services definitions. #21629

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

Closed
wants to merge 1 commit into from

Conversation

hhamon
Copy link
Contributor

@hhamon hhamon commented Feb 16, 2017

Q A
Branch? master
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets ~
License MIT
Doc PR ~

@hhamon
Copy link
Contributor Author

hhamon commented Feb 16, 2017

This PR is also related to #21530.

… pass very early first to support inherited tags in services definitions.
@nicolas-grekas
Copy link
Member

Instead of running ResolveDefinitionTemplatesPass twice, we need a new ResolveDefinitionInheritancePass compiler pass, that does only copy tags from parents to children when required. This should preserve the ChildDefinition objects because at this stage it still makes sense to have them untouched. Will remove any potential BC break that resolving definition templates might create also.

@nicolas-grekas
Copy link
Member

ResolveDefinitionInheritancePass implemented as part of #21530.
Thanks for the catch @hhamon !

@hhamon hhamon deleted the fix-inherit-tags branch February 22, 2017 13:14
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.

3 participants