| Conditions | 5 |
| Paths | 4 |
| Total Lines | 20 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 34 | public function execute(InputInterface $input, OutputInterface $output) |
||
| 35 | { |
||
| 36 | $output->writeln('<info>clearing cache information</info>'); |
||
| 37 | |||
| 38 | foreach ($this->getManager()->getCacheServices() as $name => $cache) { |
||
| 39 | if ($input->getOption('cache') && !in_array($name, $input->getOption('cache'))) { |
||
| 40 | continue; |
||
| 41 | } |
||
| 42 | |||
| 43 | $output->write(sprintf(' > %s : starting .... ', $name)); |
||
| 44 | |||
| 45 | if ($cache->flushAll() === true) { |
||
| 46 | $output->writeln('<info>OK</info>'); |
||
| 47 | } else { |
||
| 48 | $output->writeln('<error>FAILED!</error>'); |
||
| 49 | } |
||
| 50 | } |
||
| 51 | |||
| 52 | $output->writeln('<info>done!</info>'); |
||
| 53 | } |
||
| 54 | } |
||
| 55 |