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] copy synthetic status when resolving child definitions #44986

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

nicolas-grekas commented Jan 12, 2022

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

nicolas-grekas commented Jan 12, 2022

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

nicolas-grekas commented Jan 19, 2022

Thank you @kbond.

@nicolas-grekas nicolas-grekas force-pushed the di-child-synthetic-service branch from 9da5da3 to aad1bf6 Compare Jan 19, 2022
@nicolas-grekas nicolas-grekas merged commit a010891 into symfony:4.4 Jan 19, 2022
1 check was pending
@kbond kbond deleted the di-child-synthetic-service branch Jan 19, 2022
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants