1
0
mirror of https://github.com/RSS-Bridge/rss-bridge.git synced 2025-08-11 02:54:10 +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:
Dag
2022-08-02 15:03:54 +02:00
committed by GitHub
parent a0a0d5235b
commit ecb486794b
11 changed files with 42 additions and 41 deletions

View File

@@ -116,7 +116,7 @@ class ElloBridge extends BridgeAbstract
$cacheFactory = new CacheFactory();
$cache = $cacheFactory->create();
$cache->setScope(get_called_class());
$cache->setScope('ElloBridge');
$cache->setKey(['key']);
$key = $cache->loadData();