Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
28 | public static function queue() |
||
29 | { |
||
30 | if (! app(ServiceCaller::class)->hasHandler(static::class)) { |
||
31 | throw ServiceHandlerMethodException::notFound(static::class); |
||
32 | } |
||
33 | |||
34 | return resolve(Dispatcher::class)->dispatch( |
||
35 | new QueuedService(Container::getInstance()->make(static::class), func_get_args()) |
||
36 | ); |
||
37 | } |
||
38 | } |
||
39 |