Skip to content

Commit c90d87b

Browse files
committed
fix(config): add missing classes for exception notification
- Import `ReportExceptionJob` and `ReportExceptionMail` classes. - Add `class` key in the `job` configuration for specifying the job class. - Add `class` key in the `mail` configuration for specifying the mail class.
1 parent 6ee9b54 commit c90d87b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

config/exception-notify.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@
2323
use Guanguans\LaravelExceptionNotify\Collectors\RequestHeaderCollector;
2424
use Guanguans\LaravelExceptionNotify\Collectors\RequestPostCollector;
2525
use Guanguans\LaravelExceptionNotify\Collectors\RequestQueryCollector;
26+
use Guanguans\LaravelExceptionNotify\Jobs\ReportExceptionJob;
27+
use Guanguans\LaravelExceptionNotify\Mail\ReportExceptionMail;
2628
use Guanguans\LaravelExceptionNotify\Pipes\AddKeywordChorePipe;
2729
use Guanguans\LaravelExceptionNotify\Pipes\LimitLengthPipe;
2830
use Guanguans\LaravelExceptionNotify\Pipes\SprintfHtmlPipe;
@@ -60,6 +62,7 @@
6062
* The job of report exception.
6163
*/
6264
'job' => [
65+
'class' => ReportExceptionJob::class,
6366
'connection' => env('EXCEPTION_NOTIFY_JOB_CONNECTION'),
6467
'queue' => env('EXCEPTION_NOTIFY_JOB_QUEUE'),
6568
],
@@ -139,6 +142,7 @@
139142
'mail' => [
140143
'driver' => 'mail',
141144
'mailer' => env('EXCEPTION_NOTIFY_MAIL_MAILER'),
145+
'class' => ReportExceptionMail::class,
142146
'title' => Template::TITLE,
143147
'content' => Template::CONTENT,
144148
'to' => [

0 commit comments

Comments
 (0)