Skip to content

Commit 27d8c9f

Browse files
authored
Merge pull request #11 from codex-team/fix/issue-10/remove-redundant-exception-handler
Remove redundant ExceptionHandler override for Laravel (#10)
2 parents fa0a788 + 30fc724 commit 27d8c9f

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
"description": "Laravel errors Catcher module for Hawk.so",
44
"keywords": ["hawk", "php", "error", "catcher", "monolog", "laravel"],
55
"type": "library",
6-
"version": "0.1.2",
6+
"version": "0.1.3",
77
"license": "AGPL-3.0-only",
88
"require": {
99
"php": "^7.2 || ^8.0",
10-
"codex-team/hawk.php": "^2.2.9",
10+
"codex-team/hawk.php": "^2.2.10",
1111
"guzzlehttp/guzzle": "^6.0 || ^7.0",
1212
"guzzlehttp/psr7": "^2.1.1",
1313
"illuminate/support": "^6.0 | ^7.0 | ^8.0 | ^9.0 | ^10.0 | ^11.0 | ^12.0"

src/ErrorLoggerServiceProvider.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
namespace HawkBundle;
66

77
use HawkBundle\Console\Commands\PublishHawkConfig;
8-
use HawkBundle\Handlers\ErrorHandler;
98
use HawkBundle\Services\BeforeSendServiceInterface;
109
use HawkBundle\Services\BreadcrumbsCollector;
1110
use HawkBundle\Services\DataFilter;
@@ -78,10 +77,6 @@ public function boot()
7877
return Catcher::init($options, $breadcrumbsCollector);
7978
});
8079

81-
$this->app->singleton('Illuminate\Contracts\Debug\ExceptionHandler', function ($app) {
82-
return new ErrorHandler($app, $app->make(ErrorLoggerService::class));
83-
});
84-
8580
Event::listen(RouteMatched::class, function (RouteMatched $event) {
8681
$filter = resolve(DataFilter::class);
8782
app(BreadcrumbsCollector::class)->add(

0 commit comments

Comments
 (0)