Skip to content

Commit

Permalink
Support Whoops 2 and up, drop support for Whoops 1
Browse files Browse the repository at this point in the history
  • Loading branch information
gerryd committed Jul 7, 2016
1 parent b971933 commit ca56b8a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 15 deletions.
4 changes: 3 additions & 1 deletion lib/Skeleton/Error/Handler/Whoops.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,11 @@ class Whoops extends Handler {
* @return string
*/
public function handle() {
$whoops = new \Skeleton\Error\Util\WhoopsWrapper();
$whoops = new \Whoops\Run();
$whoops->pushHandler(new \Whoops\Handler\PlainTextHandler());
$whoops->pushHandler(new \Whoops\Handler\PrettyPageHandler());
$whoops->allowQuit(false);
$whoops->writeToOutput(false);
return $whoops->handleException($this->exception);
}

Expand Down
14 changes: 0 additions & 14 deletions lib/Skeleton/Error/Util/WhoopsWrapper.php

This file was deleted.

0 comments on commit ca56b8a

Please sign in to comment.