isEnable(); $types = $this->getRequestedTypes($input); $changedTypes = $this->cacheManager->setEnabled($types, $isEnable); if ($changedTypes) { $output->writeln('Changed cache status:'); foreach ($changedTypes as $type) { $output->writeln(sprintf('%30s: %d -> %d', $type, !$isEnable, $isEnable)); } } else { $output->writeln('There is nothing to change in cache status'); } if (!empty($changedTypes) && $isEnable) { $this->cacheManager->clean($changedTypes); $output->writeln('Cleaned cache types:'); $output->writeln(join(PHP_EOL, $changedTypes)); } } }