| Conditions | 2 |
| Paths | 2 |
| Total Lines | 15 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 33 | public function execute() |
||
| 34 | { |
||
| 35 | $options = $this->getOptions(); |
||
| 36 | |||
| 37 | if (!$options['pools']) { |
||
| 38 | throw new ErrorException('Parameter "pools" is not defined'); |
||
| 39 | } |
||
| 40 | |||
| 41 | $command = $options['console'] . ' cache:pool:clear ' . $options['pools'] . ' --env=' . $options['env'] . ' ' . $options['flags']; |
||
| 42 | |||
| 43 | /** @var Process $process */ |
||
| 44 | $process = $this->runtime->runCommand(trim($command)); |
||
| 45 | |||
| 46 | return $process->isSuccessful(); |
||
| 47 | } |
||
| 48 | |||
| 54 |