| Conditions | 2 |
| Paths | 2 |
| Total Lines | 16 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 3 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 35 | protected function execute(InputInterface $input, OutputInterface $output) |
||
| 36 | { |
||
| 37 | $this->ensureExtensionLoaded('apc'); |
||
| 38 | |||
| 39 | $key = $input->getArgument('key'); |
||
| 40 | |||
| 41 | $success = new \stdClass(); |
||
| 42 | $value = $this->getCacheTool()->apc_fetch($key, $success); |
||
| 43 | |||
| 44 | if ($success->success) { |
||
| 45 | $output->writeln("<comment>APC key=<info>{$key}</info> has value=<info>{$value}</info></comment>"); |
||
| 46 | } else { |
||
| 47 | $output->writeln("<comment>APC key=<info>{$key}</info> does not exist.</comment>"); |
||
| 48 | return 1; |
||
| 49 | } |
||
| 50 | } |
||
| 51 | } |
||
| 52 |