Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 3 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
33 | protected function execute(InputInterface $input, OutputInterface $output) |
||
34 | { |
||
35 | $this->ensureExtensionLoaded('Zend OPcache'); |
||
36 | |||
37 | $success = $this->getCacheTool()->opcache_reset(); |
||
38 | |||
39 | if (!$success) { |
||
40 | throw new \RuntimeException('opcache_reset(): No Opcache status info available. Perhaps Opcache is disabled via opcache.enable or opcache.enable_cli?'); |
||
41 | } |
||
42 | } |
||
43 | } |
||
44 |