Skip to content

Commit

Permalink
[FrameworkBundle] Display a proper warning on cache:clear without the…
Browse files Browse the repository at this point in the history
… --no-warmup option
  • Loading branch information
ogizanagi committed Jun 29, 2017
1 parent 7093fc1 commit 6cd188b
Showing 1 changed file with 5 additions and 1 deletion.
Expand Up @@ -77,7 +77,11 @@ protected function execute(InputInterface $input, OutputInterface $output)
if ($input->getOption('no-warmup')) {
$filesystem->rename($realCacheDir, $oldCacheDir);
} else {
@trigger_error('Calling cache:clear without the --no-warmup option is deprecated since version 3.3. Cache warmup should be done with the cache:warmup command instead.', E_USER_DEPRECATED);
$warning = 'Calling cache:clear without the --no-warmup option is deprecated since version 3.3. Cache warmup should be done with the cache:warmup command instead.';

@trigger_error($warning, E_USER_DEPRECATED);

$io->warning($warning);

$this->warmupCache($input, $output, $realCacheDir, $oldCacheDir);
}
Expand Down

0 comments on commit 6cd188b

Please sign in to comment.