8000 Check if cache_warmer service is available before doing the actual ca… · symfony/symfony@6b872cf · GitHub
[go: up one dir, main page]

Skip to content

Commit 6b872cf

Browse files
author
Miha Vrhovnik
committed
Check if cache_warmer service is available before doing the actual cache warmup
1 parent 40fb76d commit 6b872cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/HttpKernel/Kernel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -553,7 +553,7 @@ protected function initializeContainer()
553553
$this->container = new $class();
554554
$this->container->set('kernel', $this);
555555

556-
if (!$fresh) {
556+
if (!$fresh && $this->container->has('cache_warmer')) {
557557
$this->container->get('cache_warmer')->warmUp($this->container->getParameter('kernel.cache_dir'));
558558
}
559559
}

0 commit comments

Comments
 (0)
0