Skip to content

Commit

Permalink
[FrameworkBundle] Adding information about exactly which cache is bei…
Browse files Browse the repository at this point in the history
…ng cleared.
  • Loading branch information
weaverryan committed Aug 7, 2011
1 parent e136718 commit 6738d2b
Showing 1 changed file with 3 additions and 0 deletions.
Expand Up @@ -61,6 +61,9 @@ protected function execute(InputInterface $input, OutputInterface $output)
throw new \RuntimeException(sprintf('Unable to write in the "%s" directory', $realCacheDir));
}

$kernel = $this->getContainer()->get('kernel');
$output->writeln(sprintf('Clearing the cache for the <info>%s</info> environment with debug <info>%s</info>', $kernel->getEnvironment(), var_export($kernel->isDebug(), true)));

if ($input->getOption('no-warmup')) {
rename($realCacheDir, $oldCacheDir);
} else {
Expand Down

0 comments on commit 6738d2b

Please sign in to comment.