/** * Builds a response for an exception * @param \Exception $exception * @return \PHPixie\HTTP\Responses\Response */ public function process($exception) { $templateName = $this->configData->getRequired('template'); $trace = $this->debug->exceptionTrace($exception); $body = $this->template->render($templateName, array('exception' => $exception, 'trace' => $trace, 'logger' => $this->debug->logger())); return $this->http->responses()->response($body, array(), 500); }
/** * Debug component logger * @return \PHPixie\Debug\Logger */ public function logger() { return $this->debug->logger(); }