Переглянути джерело

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

Ryan Weaver 14 роки тому
батько
коміт
6738d2b6f8

+ 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 {