privates['console.command.cache_warmup'] = $instance = new \Symfony\Bundle\FrameworkBundle\Command\CacheWarmupCommand(($container->services['cache_warmer'] ?? $container->load('getCacheWarmerService'))); $instance->setName('cache:warmup'); $instance->setDescription('Warm up an empty cache'); return $instance; } }