Skip to content

Commit

Permalink
Update: GetResponseForExceptionEvent->getException() is deprecated si…
Browse files Browse the repository at this point in the history
…nce Symfony 4.4, use getThrowable() instead
  • Loading branch information
BeBlood committed Sep 2, 2020
1 parent baf87a5 commit 6787e2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion EventListener/ExceptionListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 6787e2a

Please sign in to comment.