8000 [FrameworkBundle] Adding information about exactly which cache is bei… · ajitomatix/symfony@6738d2b · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on Sep 27, 2024. It is now read-only.

Commit 6738d2b

Browse files
committed
[FrameworkBundle] Adding information about exactly which cache is being cleared.
1 parent e136718 commit 6738d2b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Symfony/Bundle/FrameworkBundle/Command/CacheClearCommand.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,9 @@ protected function execute(InputInterface $input, OutputInterface $output)
6161
throw new \RuntimeException(sprintf('Unable to write in the "%s" directory', $realCacheDir));
6262
}
6363

64+
$kernel = $this->getContainer()->get('kernel');
65+
$output->writeln(sprintf('Clearing the cache for the <info>%s</info> environment with debug <info>%s</info>', $kernel->getEnvironment(), var_export($kernel->isDebug(), true)));
66+
6467
if ($input->getOption('no-warmup')) {
6568
rename($realCacheDir, $oldCacheDir);
6669
} else {

0 commit comments

Comments
 (0)
0