Skip to content

Commit e619eab

Browse files
committed
Add DdReportListener.php
1 parent a76a74f commit e619eab

File tree

3 files changed

+44
-0
lines changed

3 files changed

+44
-0
lines changed

config/exception-notify.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@
9898
'reporting' => [
9999
// \Guanguans\LaravelExceptionNotify\Listeners\Reporting\LogReportListener::class,
100100
// \Guanguans\LaravelExceptionNotify\Listeners\Reporting\DumpReportListener::class,
101+
// \Guanguans\LaravelExceptionNotify\Listeners\Reporting\DdReportListener::class,
101102
],
102103

103104
/*
@@ -111,6 +112,7 @@
111112
'reported' => [
112113
// \Guanguans\LaravelExceptionNotify\Listeners\Reported\LogReportResultListener::class,
113114
// \Guanguans\LaravelExceptionNotify\Listeners\Reported\DumpReportResultListener::class,
115+
// \Guanguans\LaravelExceptionNotify\Listeners\Reported\DdReportResultListener::class,
114116
],
115117

116118
/*
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<?php
2+
3+
/**
4+
* This file is part of the guanguans/laravel-exception-notify.
5+
*
6+
* (c) guanguans <ityaozm@gmail.com>
7+
*
8+
* This source file is subject to the MIT license that is bundled.
9+
*/
10+
11+
namespace Guanguans\LaravelExceptionNotify\Listeners\Reported;
12+
13+
use Guanguans\LaravelExceptionNotify\Events\ReportedEvent;
14+
15+
class DdReportResultListener
16+
{
17+
public function handle(ReportedEvent $event)
18+
{
19+
dd($event->channel->getName(), $event->result);
20+
}
21+
}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<?php
2+
3+
/**
4+
* This file is part of the guanguans/laravel-exception-notify.
5+
*
6+
* (c) guanguans <ityaozm@gmail.com>
7+
*
8+
* This source file is subject to the MIT license that is bundled.
9+
*/
10+
11+
namespace Guanguans\LaravelExceptionNotify\Listeners\Reporting;
12+
13+
use Guanguans\LaravelExceptionNotify\Events\ReportingEvent;
14+
15+
class DdReportListener
16+
{
17+
public function handle(ReportingEvent $event)
18+
{
19+
dd($event->channel->getName(), $event->report);
20+
}
21+
}

0 commit comments

Comments
 (0)