Fixed access denied handling

This commit is contained in:
Christophe Coevoet 2011-02-10 15:22:02 +01:00 committed by Fabien Potencier
parent 82a8a3fb42
commit 74b87294c2

View File

@ -128,8 +128,6 @@ class ExceptionListener implements ListenerInterface
$response = $event->getSubject()->handle($subRequest, HttpKernelInterface::SUB_REQUEST, true); $response = $event->getSubject()->handle($subRequest, HttpKernelInterface::SUB_REQUEST, true);
$response->setStatusCode(403); $response->setStatusCode(403);
return $response;
} }
} catch (\Exception $e) { } catch (\Exception $e) {
if (null !== $this->logger) { if (null !== $this->logger) {