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

Skip to content

[DependencyInjection] Allow using ghost objects for lazy loading services #46741

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
Jun 22, 2022

Conversation

nicolas-grekas
Copy link
Member

Q A
Branch? 6.2
Bug fix? no
New feature? yes
Deprecations? no
Tickets -
License MIT
Doc PR -

This PR is a subset of #46458 that contains the needed API changes to allow lazy-proxy dumpers to use ghost objects.

The main change of this PR is adding argument bool &$asGhostObject = null to LazyProxy's DumperInterface.
The rest is the consequence of that new capability.

The changes on ProxyManager are all minor: refactoring the code to make it more flexible (as proved by #46458) and adding the new argument but not doing anything with it (yet.)

@nicolas-grekas nicolas-grekas merged commit bbf25d6 into symfony:6.2 Jun 22, 2022
@nicolas-grekas nicolas-grekas deleted the di-ghost-objects branch June 22, 2022 15:28
@fabpot fabpot mentioned this pull request Oct 24, 2022
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.

4 participants