protected function handleWithSymfony(Exception $exception)
{
if (!$exception instanceof FlattenException) {
$exception = FlattenException::create($exception);
}
$handler = new ExceptionHandler($this->debug);
return Response::create($handler->getHtml($exception), $exception->getStatusCode(), $exception->getHeaders());
}