| Total Complexity | 5 |
| Total Lines | 52 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | class HorizonServiceProvider extends ServiceProvider |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * All of the Horizon event / listener mappings. |
||
| 13 | * |
||
| 14 | * @var array |
||
| 15 | */ |
||
| 16 | protected $events = [ |
||
| 17 | \Illuminate\Queue\Events\JobFailed::class => [ |
||
| 18 | Listeners\MarshalFailedEvent::class, |
||
| 19 | ], |
||
| 20 | ]; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * Register the Horizon job events. |
||
| 24 | * |
||
| 25 | * @return void |
||
| 26 | */ |
||
| 27 | protected function registerEvents(): void |
||
| 34 | } |
||
| 35 | } |
||
| 36 | } |
||
| 37 | |||
| 38 | /** |
||
| 39 | * Register the custom queue connectors for Horizon. |
||
| 40 | * |
||
| 41 | * @return void |
||
| 42 | */ |
||
| 43 | protected function registerQueueConnectors(): void |
||
| 49 | }); |
||
| 50 | } |
||
| 51 | |||
| 52 | /** |
||
| 53 | * Register any application services. |
||
| 54 | * |
||
| 55 | * @return void |
||
| 56 | */ |
||
| 57 | public function boot(): void |
||
| 63 |