bug #38142 [FrameworkBundle] adopt src/.preload.php (nicolas-grekas)
This PR was merged into the 4.4 branch.
Discussion
----------
[FrameworkBundle] adopt src/.preload.php
| Q | A
| ------------- | ---
| Branch? | 4.4
| Bug fix? | yes
| New feature? | no
| Deprecations? | no
| Tickets | Fix #38123
| License | MIT
| Doc PR | -
The leading dot prevents PSR-4 discovery from considering the file.
Commits
-------
f4c47ebefa
[FrameworkBundle] adopt src/.preload.php
This commit is contained in:
commit
cfec631620
@ -174,7 +174,7 @@ EOF
|
|||||||
$preloadFile = $fs->makePathRelative(\dirname($containerFile, 2), $kernelDir);
|
$preloadFile = $fs->makePathRelative(\dirname($containerFile, 2), $kernelDir);
|
||||||
$preloadFile .= substr_replace(basename($containerFile), '.preload', -4, 0);
|
$preloadFile .= substr_replace(basename($containerFile), '.preload', -4, 0);
|
||||||
$preloadFile = var_export('/'.$preloadFile, true);
|
$preloadFile = var_export('/'.$preloadFile, true);
|
||||||
@file_put_contents($kernelDir.'/preload.php', <<<EOPHP
|
@file_put_contents($kernelDir.'/.preload.php', <<<EOPHP
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
if (file_exists(__DIR__.$preloadFile)) {
|
if (file_exists(__DIR__.$preloadFile)) {
|
||||||
|
Reference in New Issue
Block a user