Skip to content

Commit

Permalink
Made the Handler implement ExceptionHandler i-face
Browse files Browse the repository at this point in the history
  • Loading branch information
tontonsb committed Feb 15, 2019
1 parent 084560a commit afe1aa4
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog

## 1.0.2

### Fixed
- Made HidingHandler implement ExceptionHandler i-face.

## 1.0.1

### Added
Expand Down
13 changes: 12 additions & 1 deletion src/HidingHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace GlaivePro\Hidevara;

class HidingHandler
class HidingHandler implements \Illuminate\Contracts\Debug\ExceptionHandler
{
protected $superGlobies = ['_GET', '_POST', '_FILES', '_COOKIE', '_SESSION', '_SERVER', '_ENV'];

Expand Down Expand Up @@ -89,4 +89,15 @@ public function render($request, \Exception $exception)

return $this->handler->render($request, $exception);
}

// The following two functions are just here so we could implement the ExceptionHandler interface
public function report(\Exception $exception)
{
return $this->handler->report($exception);
}

public function renderForConsole($output, \Exception $exception)
{
return $this->handler->renderForConsole($output, $exception);
}
}

0 comments on commit afe1aa4

Please sign in to comment.