Skip to content

Commit e5bff74

Browse files
committed
Support dd channel
1 parent acbf45f commit e5bff74

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

src/Channels/DdChannel.php

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<?php
2+
3+
/**
4+
* This file is part of the guanguans/laravel-exception-notify.
5+
*
6+
* (c) guanguans <[email protected]>
7+
*
8+
* This source file is subject to the MIT license that is bundled.
9+
*/
10+
11+
namespace Guanguans\LaravelExceptionNotify\Channels;
12+
13+
class DdChannel extends Channel
14+
{
15+
public function report(string $report)
16+
{
17+
dd($report);
18+
}
19+
}

src/ExceptionNotifyManager.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
namespace Guanguans\LaravelExceptionNotify;
1212

1313
use Guanguans\LaravelExceptionNotify\Channels\ChanifyChannel;
14+
use Guanguans\LaravelExceptionNotify\Channels\DdChannel;
1415
use Guanguans\LaravelExceptionNotify\Channels\DingTalkChannel;
1516
use Guanguans\LaravelExceptionNotify\Channels\DumpChannel;
1617
use Guanguans\LaravelExceptionNotify\Channels\FeiShuChannel;
@@ -224,6 +225,11 @@ protected function createDingTalkDriver()
224225
);
225226
}
226227

228+
protected function createDdDriver()
229+
{
230+
return new DdChannel();
231+
}
232+
227233
protected function createDumpDriver()
228234
{
229235
return new DumpChannel();

0 commit comments

Comments
 (0)