You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
bug #44010 [DependencyInjection] fix auto-refresh when inline_factories is enabled (nicolas-grekas)
This PR was merged into the 5.4 branch.
Discussion
----------
[DependencyInjection] fix auto-refresh when inline_factories is enabled
| Q | A
| ------------- | ---
| Branch? | 5.4
| Bug fix? | yes
| New feature? | no
| Deprecations? | no
| Tickets | Fix #43956
| License | MIT
| Doc PR | -
This is more an improvement than a bugfix to me, thus the 5.4 target.
When `inline_factories` is set, we also inline proxy classes in the dumped container.
This breaks auto-refreshing the cache when a proxyfied class is removed (as described in the linked issue).
This PR fixes the issue by dumping proxy classes in a new `proxy-classes.php` file. This file is loaded only after the cache has been checked, when the container is initialized.
Commits
-------
de495a562f [DependencyInjection] fix auto-refresh when inline_factories is enabled
0 commit comments