Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
8 | public static function dispatch(string $event, ?string $payload = null): void |
||
9 | { |
||
10 | $command = ['hermes', 'dispatch', $event]; |
||
11 | if (!empty($payload)) { |
||
12 | $command[] = $payload; |
||
13 | } |
||
14 | |||
15 | $process = new Process($command); |
||
16 | $process->enableOutput(); |
||
17 | $process->setTty(true); |
||
18 | |||
19 | $process->mustRun(); |
||
20 | } |
||
46 |