From 9db6c8d28a51ef9384e02618e56b4c80793c5369 Mon Sep 17 00:00:00 2001 From: Christian Raue Date: Sun, 29 Jan 2012 22:53:47 +0100 Subject: [PATCH] print info about environment and debug mode when running the `CacheWarmupCommand` --- .../Bundle/FrameworkBundle/Command/CacheWarmupCommand.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Symfony/Bundle/FrameworkBundle/Command/CacheWarmupCommand.php b/src/Symfony/Bundle/FrameworkBundle/Command/CacheWarmupCommand.php index f8e00650a3..0b4bd56f63 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Command/CacheWarmupCommand.php +++ b/src/Symfony/Bundle/FrameworkBundle/Command/CacheWarmupCommand.php @@ -43,7 +43,8 @@ EOF */ 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 %s environment with debug %s', $kernel->getEnvironment(), var_export($kernel->isDebug(), true))); $warmer = $this->getContainer()->get('cache_warmer'); $warmer->enableOptionalWarmers();