[FrameworkBundle] adopt src/.preload.php

This commit is contained in:
Nicolas Grekas 2020-09-10 14:29:02 +02:00
parent afd4027c11
commit f4c47ebefa

View File

@ -174,7 +174,7 @@ EOF
$preloadFile = $fs->makePathRelative(\dirname($containerFile, 2), $kernelDir);
$preloadFile .= substr_replace(basename($containerFile), '.preload', -4, 0);
$preloadFile = var_export('/'.$preloadFile, true);
@file_put_contents($kernelDir.'/preload.php', <<<EOPHP
@file_put_contents($kernelDir.'/.preload.php', <<<EOPHP
<?php
if (file_exists(__DIR__.$preloadFile)) {