9 use Symfony\Component\Console\Input\InputInterface;
10 use Symfony\Component\Console\Output\OutputInterface;
23 abstract protected function isEnable();
32 $changedTypes = $this->cacheManager->setEnabled($types, $isEnable);
34 $output->writeln(
'Changed cache status:');
35 foreach ($changedTypes as
$type) {
36 $output->writeln(sprintf(
'%30s: %d -> %d',
$type, !$isEnable, $isEnable));
39 $output->writeln(
'There is nothing to change in cache status');
41 if (!empty($changedTypes) && $isEnable) {
42 $this->cacheManager->clean($changedTypes);
43 $output->writeln(
'Cleaned cache types:');
44 $output->writeln(join(PHP_EOL, $changedTypes));
execute(InputInterface $input, OutputInterface $output)
getRequestedTypes(InputInterface $input)