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 | |||
16 | $notification = app(config('laravel-failed-job-monitor.notification'))->setEvent($event); |
||
17 | |||
18 | if (! $this->isValidNotificationClass($notification)) { |
||
19 | throw InvalidConfiguration::notificationClassInvalid(get_class($notification)); |
||
38 |