protected function handleRedirectResponseException(GetResponseForExceptionEvent $event, RedirectResponseException $ex) {
        if (null !== $ex->getRedirectUrl()) {
            $event->setResponse(new RedirectResponse($ex->getRedirectUrl()));
        }
        return $event;
    }
protected function handleRedirectResponseException(GetResponseForExceptionEvent $event, RedirectResponseException $ex) {
        if (null !== $ex->getRedirectUrl()) {
            $event->setResponse(new RedirectResponse($ex->getRedirectUrl()));
        }
        return $event;
    }
protected function handleRedirectResponseException ( GetResponseForExceptionEvent $ event , RedirectResponseException $ ex ) { if ( null !== $ ex -> getRedirectUrl ( ) ) { $ event -> setResponse ( new RedirectResponse ( $ ex -> getRedirectUrl ( ) ) ) ; } return $ event ; }
Handle a redirect response exception.

@param GetResponseForExceptionEvent $event The event.
@param RedirectResponseException $ex The exception.
@return GetResponseForExceptionEvent Returns the event.
Handle a redirect response exception .