KnpU\OAuth2ClientBundle\Security\Authenticator\SocialAuthenticator::fetchAccessToken PHP Method

fetchAccessToken() protected method

protected fetchAccessToken ( OAuth2Client $client )
$client KnpU\OAuth2ClientBundle\Client\OAuth2Client
    protected function fetchAccessToken(OAuth2Client $client)
    {
        try {
            return $client->getAccessToken();
        } catch (MissingAuthorizationCodeException $e) {
            throw new NoAuthCodeAuthenticationException();
        }
    }