Conditions | 2 |
Paths | 2 |
Total Lines | 14 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
46 | public function execute(TaskExecutionInterface $execution) |
||
47 | { |
||
48 | $process = ProcessBuilder::create( |
||
49 | [$this->consolePath, 'task:execute', $execution->getUuid(), '-e ' . $this->environment] |
||
50 | )->getProcess(); |
||
51 | |||
52 | $process->run(); |
||
53 | |||
54 | if (!$process->isSuccessful()) { |
||
55 | throw new SeparateProcessException($process->getErrorOutput()); |
||
56 | } |
||
57 | |||
58 | return $process->getOutput(); |
||
59 | } |
||
60 | } |
||
61 |