Total Complexity | 4 |
Total Lines | 25 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
11 | final class Handler extends ExceptionHandler |
||
12 | { |
||
13 | protected $dontReport = [ |
||
14 | // |
||
15 | ]; |
||
16 | |||
17 | protected $dontFlash = [ |
||
18 | 'password', |
||
19 | 'password_confirmation', |
||
20 | ]; |
||
21 | |||
22 | public function report(Throwable $e) |
||
23 | { |
||
24 | if ($this->container->bound('sentry') && $this->shouldReport($e)) { |
||
25 | $this->container->make('sentry')->captureException($e); |
||
26 | } |
||
27 | |||
28 | parent::report($e); |
||
29 | } |
||
30 | |||
31 | public function render($request, Throwable $e) |
||
36 | } |
||
37 | } |
||
38 |