diff --git a/src/Symfony/Component/HttpKernel/Kernel.php b/src/Symfony/Component/HttpKernel/Kernel.php index c2790c79337a..ee299e50101b 100644 --- a/src/Symfony/Component/HttpKernel/Kernel.php +++ b/src/Symfony/Component/HttpKernel/Kernel.php @@ -506,7 +506,7 @@ protected function initializeContainer() $this->container = new $class(); $this->container->set('kernel', $this); - if (!$fresh && 'cli' !== php_sapi_name()) { + if (!$fresh) { $this->container->get('cache_warmer')->warmUp($this->container->getParameter('kernel.cache_dir')); } }