Skip to content

Commit d63c201

Browse files
committed
Remove global pipeline
1 parent 73b9751 commit d63c201

File tree

2 files changed

+2
-13
lines changed

2 files changed

+2
-13
lines changed

config/exception-notify.php

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
use Guanguans\LaravelExceptionNotify\Pipelines\StrReplacePipeline;
1414
use Guanguans\LaravelExceptionNotify\Pipelines\ToHtmlPipeline;
1515
use Guanguans\LaravelExceptionNotify\Pipelines\ToMarkdownPipeline;
16-
use Guanguans\LaravelExceptionNotify\Pipelines\TrimPipeline;
1716

1817
return [
1918
/*
@@ -125,17 +124,6 @@
125124
// \Guanguans\LaravelExceptionNotify\Listeners\Reported\DdReportResultListener::class,
126125
],
127126

128-
/*
129-
|--------------------------------------------------------------------------
130-
| Global pipeline.
131-
|--------------------------------------------------------------------------
132-
| The global pipeline are used to pipeline report data.
133-
|
134-
*/
135-
'pipeline' => [
136-
TrimPipeline::class,
137-
],
138-
139127
/*
140128
|--------------------------------------------------------------------------
141129
| default channel.

src/Jobs/ReportExceptionJob.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
use Guanguans\LaravelExceptionNotify\Contracts\Channel;
1414
use Guanguans\LaravelExceptionNotify\Events\ReportedEvent;
1515
use Guanguans\LaravelExceptionNotify\Events\ReportingEvent;
16+
use Guanguans\LaravelExceptionNotify\Pipelines\TrimPipeline;
1617
use Guanguans\LaravelExceptionNotify\Support\Traits\CreateStatic;
1718
use Illuminate\Bus\Queueable;
1819
use Illuminate\Contracts\Queue\ShouldQueue;
@@ -79,7 +80,7 @@ public function handle()
7980
protected function getChannelPipeline(): array
8081
{
8182
return array_merge(
82-
config('exception-notify.pipeline', []),
83+
[TrimPipeline::class],
8384
config(sprintf('exception-notify.channels.%s.pipeline', $this->channel->getName()), [])
8485
);
8586
}

0 commit comments

Comments
 (0)