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