public function issueToken(IAccessToken $accessToken)
    {
        $scopes = $accessToken->getScopes();

        // in case of doctrine collections, etc
        if ($scopes instanceof \Traversable) {
            $scopes = iterator_to_array($scopes);
        }

        return $this->refreshTokenStorage->generate(
            $accessToken->getUser(),
            $accessToken->getClient(),
            $scopes
        );
    }
public function issueToken(IAccessToken $accessToken)
    {
        $scopes = $accessToken->getScopes();

        // in case of doctrine collections, etc
        if ($scopes instanceof \Traversable) {
            $scopes = iterator_to_array($scopes);
        }

        return $this->refreshTokenStorage->generate(
            $accessToken->getUser(),
            $accessToken->getClient(),
            $scopes
        );
    }
public function issueToken ( IAccessToken $ accessToken ) { $ scopes = $ accessToken -> getScopes ( ) ; // in case of doctrine collections, etc if ( $ scopes instanceof \ Traversable ) { $ scopes = iterator_to_array ( $ scopes ) ; } return $ this -> refreshTokenStorage -> generate ( $ accessToken -> getUser ( ) , $ accessToken -> getClient ( ) , $ scopes ) ; }
Issues refresh token for given access token

@param IAccessToken $accessToken

@return \OAuth2\Storage\IRefreshToken
Issues refresh token for given access token