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 #59713 [DependencyInjection] Do not preload functions (biozshock)
This PR was squashed before being merged into the 6.4 branch.
Discussion
----------
[DependencyInjection] Do not preload functions
| Q | A
| ------------- | ---
| Branch? | 6.4
| Bug fix? | yes
| New feature? | no <!-- please update src/**/CHANGELOG.md files -->
| Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files -->
| License | MIT
Ensure `preload.php` does not have functions in preloaded class names:
```
$ grep "current" var/cache/prod/App_KernelProdContainer.preload.php
$classes[] = 'current';
```
Happens because the DI declares a factory, which uses built-in `\current`: https://github.com/symfony/symfony/blob/v6.4.18/src/Symfony/Bundle/FrameworkBundle/Resources/config/http_client.php#L39
And then the "class" is added by https://github.com/symfony/symfony/blob/v6.4.18/src/Symfony/Component/DependencyInjection/Dumper/PhpDumper.php#L2317
Similar to the #36866
Commits
-------
b52b760dff2 [DependencyInjection] Do not preload functions
0 commit comments