Security/LdapGuardAuthenticator.php
public function onAuthenticationSuccess(Request $request, TokenInterface $token, $providerKey)
    {
        $event = new AuthenticationHandlerEvent(
            $this->successHandler->onAuthenticationSuccess($request, $token),
            $request,
            null,
            $token,
            $providerKey
        );
        $this->dispatcher->dispatch(AuthenticationHandlerEvent::SUCCESS, $event);

        return $this->options['http_basic'] ? null : $event->getResponse();
    }
public function onAuthenticationSuccess(Request $request, TokenInterface $token, $providerKey)
    {
        $event = new AuthenticationHandlerEvent(
            $this->successHandler->onAuthenticationSuccess($request, $token),
            $request,
            null,
            $token,
            $providerKey
        );
        $this->dispatcher->dispatch(AuthenticationHandlerEvent::SUCCESS, $event);

        return $this->options['http_basic'] ? null : $event->getResponse();
    }
{@inheritdoc}