[HttpKernel] removed obsolete code (the status code is already taken care of in FlattenExceptiondirectly)

This commit is contained in:
Fabien Potencier 2012-07-13 09:19:21 +02:00
parent 7a138f0e20
commit fdf320d642
1 changed files with 1 additions and 6 deletions

View File

@ -29,13 +29,8 @@ class ExceptionDataCollector extends DataCollector
public function collect(Request $request, Response $response, \Exception $exception = null)
{
if (null !== $exception) {
$flattenException = FlattenException::create($exception);
if ($exception instanceof HttpExceptionInterface) {
$flattenException->setStatusCode($exception->getStatusCode());
}
$this->data = array(
'exception' => $flattenException,
'exception' => FlattenException::create($exception),
);
}
}