Set alias for Whoops

This commit is contained in:
Maarten 2020-02-26 18:15:59 +01:00
parent c8213a6c03
commit c5faeb0401

View file

@ -5,7 +5,7 @@ namespace Runtime\Exceptions;
use Whoops\Handler\Handler; use Whoops\Handler\Handler;
use Whoops\Handler\JsonResponseHandler; use Whoops\Handler\JsonResponseHandler;
use Whoops\Handler\PlainTextHandler; use Whoops\Handler\PlainTextHandler;
use Whoops\Run; use Whoops\Run as RunWhoops;
use Whoops\Handler\PrettyPageHandler; use Whoops\Handler\PrettyPageHandler;
use Whoops\Util\Misc; use Whoops\Util\Misc;
use function DI\value; use function DI\value;
@ -13,7 +13,7 @@ use function DI\value;
class ExceptionHandler { class ExceptionHandler {
/** /**
* @var Run * @var RunWhoops
*/ */
private static $handler; private static $handler;
@ -39,7 +39,7 @@ class ExceptionHandler {
*/ */
public static function register() public static function register()
{ {
self::$handler = new Run(); self::$handler = new RunWhoops();
$debug = env('debug'); $debug = env('debug');