| Total Complexity | 4 |
| Total Lines | 44 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 24 | class ClearCacheCommand extends Command implements CommandInterface |
||
| 25 | { |
||
| 26 | /** |
||
| 27 | * @var Config |
||
| 28 | */ |
||
| 29 | private $config; |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @var LoggerInterface |
||
| 33 | */ |
||
| 34 | private $logger; |
||
| 35 | |||
| 36 | public function __construct(?string $name = null, Config $config, LoggerInterface $logger) |
||
| 37 | { |
||
| 38 | parent::__construct($name); |
||
| 39 | $this->config = $config; |
||
| 40 | $this->logger = $logger; |
||
| 41 | } |
||
| 42 | |||
| 43 | protected function configure(): void |
||
| 44 | { |
||
| 45 | $this |
||
| 46 | ->setName('clear-cache') |
||
| 47 | ->setAliases(array('cc')) |
||
| 48 | ; |
||
| 49 | } |
||
| 50 | |||
| 51 | protected function execute(InputInterface $input, OutputInterface $output): void |
||
| 68 | } |
||
| 69 | } |
||
| 70 | } |
||
| 71 |