Skip to content

Commit 6787e2a

Browse files
committed
Update: GetResponseForExceptionEvent->getException() is deprecated since Symfony 4.4, use getThrowable() instead
1 parent baf87a5 commit 6787e2a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

EventListener/ExceptionListener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public function __construct(UrlGeneratorInterface $urlGenerator)
2121

2222
public function onKernelException(GetResponseForExceptionEvent $event)
2323
{
24-
$exception = $event->getException();
24+
$exception = $event->getThrowable();
2525

2626
if ($exception instanceof IdentityProviderException) {
2727
$event->setResponse(new RedirectResponse(

0 commit comments

Comments
 (0)