Skip to content

[DependencyInjection] copy synthetic status when resolving child definitions #44986

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
Jan 19, 2022

Conversation

kbond
Copy link
Member

@kbond kbond commented Jan 11, 2022

Q A
Branch? 4.4
Bug fix? yes
New feature? no
Deprecations? no
Tickets Fix #44972
License MIT
Doc PR n/a

Appears to be the simplest fix for #44972. The only place this appears to be a problem is when using the lint:container command with an auto-configured kernel in 5.3+.

@nicolas-grekas
Copy link
Member

I'd prefer doing that in ResolveInstanceofConditionalsPass. Doable?

@kbond
Copy link
Member Author

kbond commented Jan 12, 2022

I'll need some direction for where to do this in ResolveInstanceofConditionalsPass. I tried a few different places but no luck.

@nicolas-grekas
Copy link
Member

just after $definition->setParent($parent);?

@kbond
Copy link
Member Author

kbond commented Jan 12, 2022

The definition is still synthetic at this point - this is being copied when converting to ChildDefinition. It's not being copied back in ResolveChildDefinitionsPass.

@nicolas-grekas
Copy link
Member

Thank you @kbond.

@nicolas-grekas nicolas-grekas force-pushed the di-child-synthetic-service branch from 9da5da3 to aad1bf6 Compare January 19, 2022 14:43
@nicolas-grekas nicolas-grekas merged commit a010891 into symfony:4.4 Jan 19, 2022
@kbond kbond deleted the di-child-synthetic-service branch January 19, 2022 15: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.

3 participants