Conditions | 2 |
Paths | 3 |
Total Lines | 11 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
38 | public function handle(string $name, string $id, array $payload): void |
||
39 | { |
||
40 | $method = new \ReflectionMethod($this, $this->getHandlerMethod()); |
||
41 | $method->setAccessible(true); |
||
42 | |||
43 | try { |
||
44 | $parameters = \array_merge(['payload' => $payload, 'id' => $id], $payload); |
||
45 | $method->invokeArgs($this, $this->resolver->resolveArguments($method, $parameters)); |
||
46 | } catch (\Throwable $e) { |
||
47 | $message = \sprintf('[%s] %s', \get_class($this), $e->getMessage()); |
||
48 | throw new JobException($message, (int)$e->getCode(), $e); |
||
49 | } |
||
60 |