Conditions | 1 |
Paths | 1 |
Total Lines | 8 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
11 | public function register() |
||
12 | { |
||
13 | app(QueueManager::class)->failing(function (JobFailed $event) { |
||
14 | $notifiable = app(config('laravel-failed-job-monitor.notifiable')); |
||
15 | $notification = app(config('laravel-failed-job-monitor.notification'))->setEvent($event); |
||
16 | |||
17 | if (! $this->isValidNotificationClass($notification)) { |
||
18 | throw new InvalidNotificationException( |
||
19 | "Class {get_class($notification)} must extend ".Notification::class |
||
32 |