Просмотр исходного кода

[FrameworkBundle] Adding information about exactly which cache is being cleared.

Ryan Weaver 14 лет назад
Родитель
Сommit
6738d2b6f8
1 измененных файлов с 3 добавлено и 0 удалено
  1. 3 0
      src/Symfony/Bundle/FrameworkBundle/Command/CacheClearCommand.php

+ 3 - 0
src/Symfony/Bundle/FrameworkBundle/Command/CacheClearCommand.php

@@ -61,6 +61,9 @@ EOF
             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 {