mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-06 16:46:30 +02:00
refactor: use static values for cache scope
This fixes a future problem when code is placed under a namespace because `get_class($bridge)` will then return e.g. `RssBridge\Bridge\TwitterBridge` instead of the the current value `TwitterBridge`. Also a bit refactoring of `Configuration.php`.
This commit is contained in:
@@ -125,7 +125,7 @@ HTML;
|
||||
$cacheFactory = new CacheFactory();
|
||||
|
||||
$this->clientIDCache = $cacheFactory->create();
|
||||
$this->clientIDCache->setScope(get_called_class());
|
||||
$this->clientIDCache->setScope('SoundCloudBridge');
|
||||
$this->clientIDCache->setKey(['client_id']);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user