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