Beispiel #1
0
 /**
  * Handle a fatal condition
  *
  * @param FatalErrorHandlerInterface $fatalHandler
  * @param object                     $exception
  */
 public function handleFatal(FatalErrorHandlerInterface $fatalHandler, $exception)
 {
     // replace headers
     if (!$this->isCli()) {
         Debug::replaceHeaders(array('HTTP/1.1 500 Internal Server Error'));
     }
     // clean output buffers
     $outputBuffer = $this->cleanBuffers ? Debug::cleanBuffers(null, true, true) : null;
     // handle
     $fatalHandler->handle($exception, $this->debug, $outputBuffer);
 }