"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/Symfony/Bundle/FrameworkBundle/Command/CacheClearCommand.php" between
symfony-4.4.14.tar.gz and symfony-4.4.15.tar.gz

About: Symfony is a web application framework for PHP projects. Source code (4.4 series).

CacheClearCommand.php  (symfony-4.4.14):CacheClearCommand.php  (symfony-4.4.15)
skipping to change at line 173 skipping to change at line 173
try { try {
$fs->remove($oldCacheDir); $fs->remove($oldCacheDir);
} catch (IOException $e) { } catch (IOException $e) {
if ($output->isVerbose()) { if ($output->isVerbose()) {
$io->warning($e->getMessage()); $io->warning($e->getMessage());
} }
} }
} }
$kernelDir = \dirname((new \ReflectionObject($kernel))->getFileName());
$preloadFile = $fs->makePathRelative(\dirname($containerFile, 2), $kerne
lDir);
$preloadFile .= substr_replace(basename($containerFile), '.preload', -4,
0);
$preloadFile = var_export('/'.$preloadFile, true);
@file_put_contents($kernelDir.'/.preload.php', <<<EOPHP
<?php
if (file_exists(__DIR__.$preloadFile)) {
require __DIR__.$preloadFile;
}
EOPHP
);
if ($output->isVerbose()) { if ($output->isVerbose()) {
$io->comment('Finished'); $io->comment('Finished');
} }
$io->success(sprintf('Cache for the "%s" environment (debug=%s) was succ essfully cleared.', $kernel->getEnvironment(), var_export($kernel->isDebug(), tr ue))); $io->success(sprintf('Cache for the "%s" environment (debug=%s) was succ essfully cleared.', $kernel->getEnvironment(), var_export($kernel->isDebug(), tr ue)));
return 0; return 0;
} }
private function warmup(string $warmupDir, string $realCacheDir, bool $enabl eOptionalWarmers = true) private function warmup(string $warmupDir, string $realCacheDir, bool $enabl eOptionalWarmers = true)
 End of changes. 1 change blocks. 
16 lines changed or deleted 0 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)