Conditions | 3 |
Paths | 3 |
Total Lines | 15 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
24 | protected function execute(InputInterface $input, OutputInterface $output) |
||
25 | { |
||
26 | $this->detectMagento($output, true); |
||
27 | if (!$this->initMagento()) { |
||
28 | return; |
||
29 | } |
||
30 | |||
31 | $cacheManager = $this->getCacheManager(); |
||
32 | |||
33 | $availableTypes = $cacheManager->getAvailableTypes(); |
||
34 | foreach ($availableTypes as $cacheType) { |
||
35 | $cacheManager->flush(array($cacheType)); |
||
36 | $output->writeln('<info><comment>' . $cacheType . '</comment> cache flushed</info>'); |
||
37 | } |
||
38 | } |
||
39 | } |
||
40 |