Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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

Merged
nicolas-grekas merged 1 commit into
symfony:4.4from
kbond:di-child-synthetic-service
Jan 19, 2022
Merged

[DependencyInjection] copy synthetic status when resolving child definitions#44986
nicolas-grekas merged 1 commit into
symfony:4.4from
kbond:di-child-synthetic-service

Conversation

@kbond
Copy link
Copy Markdown
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
Copy Markdown
Member

I'd prefer doing that in ResolveInstanceofConditionalsPass. Doable?

@kbond
Copy link
Copy Markdown
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
Copy Markdown
Member

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

@kbond
Copy link
Copy Markdown
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
Copy Markdown
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