Esempio n. 1
0
 /**
  * @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();
     });
 }
Esempio n. 2
0
 /**
  *
  */
 public function display()
 {
     echo $this->exception->getMessage();
 }