private function handleFatalError(ExceptionHandler $exceptionHandler, array $error) { $level = isset($this->levels[$error['type']]) ? $this->levels[$error['type']] : $error['type']; $message = sprintf('%s: %s in %s line %d', $level, $error['message'], $error['file'], $error['line']); $exception = new FatalErrorException($message, 0, $error['type'], $error['file'], $error['line']); foreach ($this->getFatalErrorHandlers() as $handler) { if ($ex = $handler->handleError($error, $exception)) { return $exceptionHandler->handle($ex); } } $exceptionHandler->handle($exception); }
/** * Display the given exception to the user. * * @param \Exception $exception */ public function display(Exception $exception) { $this->symfony->handle($exception); }