| Conditions | 3 |
| Paths | 3 |
| Total Lines | 16 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 35 | protected function execute(InputInterface $input, OutputInterface $output) |
||
| 36 | { |
||
| 37 | $this->ensureExtensionLoaded('apc'); |
||
| 38 | |||
| 39 | $cacheType = $input->getArgument('cache_type'); |
||
| 40 | |||
| 41 | if (!in_array($cacheType, array('user', 'system', 'all'))) { |
||
| 42 | throw new \InvalidArgumentException('type argument must be user, system or all'); |
||
| 43 | } |
||
| 44 | |||
| 45 | if ($cacheType === 'all') { |
||
| 46 | $this->getCacheTool()->apc_clear_cache('user'); |
||
| 47 | } |
||
| 48 | |||
| 49 | $this->getCacheTool()->apc_clear_cache($cacheType); |
||
| 50 | } |
||
| 51 | } |
||
| 52 |