コード例 #1
0
ファイル: ErrorHandler.php プロジェクト: fyuze/framework
 /**
  * @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();
     });
 }
コード例 #2
0
ファイル: Exception.php プロジェクト: fyuze/framework
 /**
  *
  */
 public function display()
 {
     echo $this->exception->getMessage();
 }