Conditions | 2 |
Paths | 2 |
Total Lines | 17 |
Code Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
30 | protected function call(string $event, $command, array &$args) |
||
31 | { |
||
32 | $runnable = new Runnable($command); |
||
33 | $this->application->debug()->debug('invoke {event} event run {runnable}', [ |
||
34 | 'runnable' => $runnable->getName(), |
||
35 | 'event' => $event |
||
36 | ]); |
||
37 | try { |
||
38 | return $runnable->apply($args); |
||
39 | } catch (\Throwable $e) { |
||
40 | $this->application->debug()->error('invoke {event} event run {runnable} error', [ |
||
41 | 'runnable' => $runnable->getName(), |
||
42 | 'event' => $event |
||
43 | ]); |
||
44 | $this->application->debug()->uncaughtException($e); |
||
45 | $this->application->dumpException($e); |
||
46 | return null; |
||
47 | } |
||
50 |