Skip to content

Conversation

@nicolas-grekas
Copy link
Member

Q A
Branch? 6.4
Bug fix? yes
New feature? no
Deprecations? no
Issues Fix #49591
License MIT

It took me a while to figure this out.
As with some other non-trivial circular loops, it's possible that a service factory is called twice for the same shared service, but in the end, only one instance should be used and shared.

@carsonbot carsonbot added this to the 6.4 milestone Dec 9, 2025
@OskarStark OskarStark changed the title [DependencyInjection] Handle recursive factory reentry for shared services in PhpDumper [DependencyInjection] Handle recursive factory reentry for shared services in PhpDumper Dec 9, 2025
@nicolas-grekas nicolas-grekas merged commit a50c2bf into symfony:6.4 Dec 10, 2025
10 of 11 checks passed
@nicolas-grekas nicolas-grekas deleted the di-49591 branch December 10, 2025 19: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.

2 participants