public function __construct() { spl_autoload_register(array($this, 'loadClass')); GlizyErrorHandler::unregister(); $whoops = new \Whoops\Run(); $handler = new \Whoops\Handler\PrettyPageHandler(); $whoops->pushHandler($handler); $whoops->register(); }
public static function unregister() { self::$isRegistred = false; restore_exception_handler(); restore_error_handler(); }