Commit 818423e
committed
bug symfony#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 symfony#36866
Commits
-------
b52b760 [DependencyInjection] Do not preload functionsFile tree
1 file changed
+12
-16
lines changed- src/Symfony/Component/DependencyInjection/Dumper
1 file changed
+12
-16
lines changedLines changed: 12 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
353 | 353 | | |
354 | 354 | | |
355 | 355 | | |
356 | | - | |
| 356 | + | |
357 | 357 | | |
358 | 358 | | |
359 | 359 | | |
| |||
846 | 846 | | |
847 | 847 | | |
848 | 848 | | |
849 | | - | |
850 | | - | |
| 849 | + | |
851 | 850 | | |
852 | 851 | | |
853 | 852 | | |
| |||
1170 | 1169 | | |
1171 | 1170 | | |
1172 | 1171 | | |
1173 | | - | |
1174 | | - | |
1175 | | - | |
| 1172 | + | |
1176 | 1173 | | |
1177 | 1174 | | |
1178 | 1175 | | |
| |||
2299 | 2296 | | |
2300 | 2297 | | |
2301 | 2298 | | |
2302 | | - | |
2303 | 2299 | | |
2304 | 2300 | | |
2305 | 2301 | | |
| |||
2311 | 2307 | | |
2312 | 2308 | | |
2313 | 2309 | | |
2314 | | - | |
| 2310 | + | |
2315 | 2311 | | |
2316 | 2312 | | |
2317 | 2313 | | |
| 2314 | + | |
| 2315 | + | |
| 2316 | + | |
| 2317 | + | |
2318 | 2318 | | |
2319 | | - | |
| 2319 | + | |
| 2320 | + | |
2320 | 2321 | | |
2321 | 2322 | | |
2322 | | - | |
2323 | | - | |
| 2323 | + | |
2324 | 2324 | | |
2325 | | - | |
2326 | | - | |
2327 | | - | |
| 2325 | + | |
2328 | 2326 | | |
2329 | 2327 | | |
2330 | | - | |
2331 | | - | |
2332 | 2328 | | |
2333 | 2329 | | |
2334 | 2330 | | |
| |||
0 commit comments