| Conditions | 1 |
| Paths | 1 |
| Total Lines | 16 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 33 | protected function execute(InputInterface $input, OutputInterface $output) |
||
| 34 | { |
||
| 35 | $this->ensureExtensionLoaded('Zend OPcache'); |
||
| 36 | |||
| 37 | $info = $this->getCacheTool()->opcache_get_configuration(); |
||
| 38 | |||
| 39 | $output->writeln("<info>{$info['version']['opcache_product_name']}</info> <comment>{$info['version']['version']}</comment>"); |
||
| 40 | |||
| 41 | $table = $this->getHelper('table'); |
||
| 42 | $table |
||
| 43 | ->setHeaders(array('Directive', 'Value')) |
||
| 44 | ->setRows($this->processDirectives($info['directives'])) |
||
| 45 | ; |
||
| 46 | |||
| 47 | $table->render($output); |
||
| 48 | } |
||
| 49 | |||
| 61 |