Пример #1
0
 /**
  * Get the error handler object, if none has been injected use default from config
  * @return AbstractHandler $error_handler
  */
 public function getErrorHandler()
 {
     if (!$this->error_handler instanceof AbstractHandler) {
         // Force creation of an instance of the default error handler
         $className = $this->config->getDefaultErrorHandlerClass();
         $this->error_handler = new $className();
     }
     return $this->error_handler;
 }