We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b5bcabf commit b5c7ec2Copy full SHA for b5c7ec2
Kernel.php
@@ -566,7 +566,7 @@ protected function initializeContainer()
566
if ($this->container->has('cache_warmer')) {
567
$preload = (array) $this->container->get('cache_warmer')->warmUp($this->container->getParameter('kernel.cache_dir'));
568
569
- if (method_exists(Preloader::class, 'append') && file_exists($preloadFile = $cacheDir.'/'.$class.'.preload.php')) {
+ if ($preload && method_exists(Preloader::class, 'append') && file_exists($preloadFile = $cacheDir.'/'.$class.'.preload.php')) {
570
Preloader::append($preloadFile, $preload);
571
}
572
0 commit comments