mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-12 19:44:12 +02:00
refactor: logger (#3678)
This commit is contained in:
@@ -278,10 +278,9 @@ class SpotifyBridge extends BridgeAbstract
|
||||
|
||||
private function fetchAccessToken()
|
||||
{
|
||||
$cache = RssBridge::getCache();
|
||||
$cacheKey = sprintf('SpotifyBridge:%s:%s', $this->getInput('clientid'), $this->getInput('clientsecret'));
|
||||
|
||||
$token = $cache->get($cacheKey);
|
||||
$token = $this->cache->get($cacheKey);
|
||||
if ($token) {
|
||||
$this->token = $token;
|
||||
} else {
|
||||
@@ -294,7 +293,7 @@ class SpotifyBridge extends BridgeAbstract
|
||||
$data = Json::decode($json);
|
||||
$this->token = $data['access_token'];
|
||||
|
||||
$cache->set($cacheKey, $this->token, 3600);
|
||||
$this->cache->set($cacheKey, $this->token, 3600);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user