/** * @codeCoverageIgnore */ public function __construct() { register_shutdown_function($this->handleFatalError()); set_error_handler($this->setErrorHandler()); set_exception_handler($this->setExceptionHandler()); $this->register('Exception', function (Exception $exception) { $handler = new ExceptionHandler($exception); $handler->display(); }); }
/** * */ public function display() { echo $this->exception->getMessage(); }