[HttpKernel] removed obsolete code (the status code is already taken care of in FlattenExceptiondirectly)
This commit is contained in:
parent
7a138f0e20
commit
fdf320d642
@ -29,13 +29,8 @@ class ExceptionDataCollector extends DataCollector
|
|||||||
public function collect(Request $request, Response $response, \Exception $exception = null)
|
public function collect(Request $request, Response $response, \Exception $exception = null)
|
||||||
{
|
{
|
||||||
if (null !== $exception) {
|
if (null !== $exception) {
|
||||||
$flattenException = FlattenException::create($exception);
|
|
||||||
if ($exception instanceof HttpExceptionInterface) {
|
|
||||||
$flattenException->setStatusCode($exception->getStatusCode());
|
|
||||||
}
|
|
||||||
|
|
||||||
$this->data = array(
|
$this->data = array(
|
||||||
'exception' => $flattenException,
|
'exception' => FlattenException::create($exception),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user