print info about environment and debug mode when running the CacheWarmupCommand

This commit is contained in:
Christian Raue 2012-01-29 22:53:47 +01:00
parent 916597eb29
commit 9db6c8d28a

View File

@ -43,7 +43,8 @@ EOF
*/ */
protected function execute(InputInterface $input, OutputInterface $output) protected function execute(InputInterface $input, OutputInterface $output)
{ {
$output->writeln('Warming up the cache'); $kernel = $this->getContainer()->get('kernel');
$output->writeln(sprintf('Warming up the cache for the <info>%s</info> environment with debug <info>%s</info>', $kernel->getEnvironment(), var_export($kernel->isDebug(), true)));
$warmer = $this->getContainer()->get('cache_warmer'); $warmer = $this->getContainer()->get('cache_warmer');
$warmer->enableOptionalWarmers(); $warmer->enableOptionalWarmers();