Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
14 | public static function setHandledEvents(array $events): int |
||
15 | { |
||
16 | $command = Hercule::BINARY . ' set:handled-events'; |
||
17 | foreach ($events as $event) { |
||
18 | $command .= " $event"; |
||
19 | } |
||
20 | |||
21 | $process = new Process($command); |
||
22 | $process->enableOutput(); |
||
23 | $process->setTty(true); |
||
24 | |||
25 | return $process->run(); |
||
26 | } |
||
28 |