Service/ClientProvider.php
protected function getAccessToken(string $tokenName = null): ?AccessToken
    {
        $cacheKey = $this->creteCacheKey($this->config->getKey($tokenName));
        $item = $this->pool->getItem($cacheKey);

        if (!$item->isHit()) {
            return null;
        }

        return $item->get();
    }
protected function getAccessToken(string $tokenName = null): ?AccessToken
    {
        $cacheKey = $this->creteCacheKey($this->config->getKey($tokenName));
        $item = $this->pool->getItem($cacheKey);

        if (!$item->isHit()) {
            return null;
        }

        return $item->get();
    }
protected function getAccessToken ( string $ tokenName = null ) : ? AccessToken { $ cacheKey = $ this -> creteCacheKey ( $ this -> config -> getKey ( $ tokenName ) ) ; $ item = $ this -> pool -> getItem ( $ cacheKey ) ; if ( ! $ item -> isHit ( ) ) { return null ; } return $ item -> get ( ) ; }
Get access token from storage.
Get access token from storage .