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