diff --git a/EventListener/ExceptionListener.php b/EventListener/ExceptionListener.php index 726a261..18a1698 100644 --- a/EventListener/ExceptionListener.php +++ b/EventListener/ExceptionListener.php @@ -21,7 +21,7 @@ public function __construct(UrlGeneratorInterface $urlGenerator) public function onKernelException(GetResponseForExceptionEvent $event) { - $exception = $event->getException(); + $exception = $event->getThrowable(); if ($exception instanceof IdentityProviderException) { $event->setResponse(new RedirectResponse(