mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-04 07:37:27 +02:00
cache: Refactor cache factory to non-static class
The cache factory can be based on the abstract factory class if it wasn't static. This allows for higher abstraction and makes future extensions possible. Also, not all parts of RSS-Bridge need to work on the same instance of the factory. References #1001
This commit is contained in:
@@ -66,7 +66,7 @@ require_once PATH_LIB . 'FormatAbstract.php';
|
||||
require_once PATH_LIB . 'BridgeFactory.php';
|
||||
require_once PATH_LIB . 'BridgeAbstract.php';
|
||||
require_once PATH_LIB . 'FeedExpander.php';
|
||||
require_once PATH_LIB . 'Cache.php';
|
||||
require_once PATH_LIB . 'CacheFactory.php';
|
||||
require_once PATH_LIB . 'Authentication.php';
|
||||
require_once PATH_LIB . 'Configuration.php';
|
||||
require_once PATH_LIB . 'BridgeCard.php';
|
||||
@@ -88,7 +88,6 @@ require_once PATH_LIB_VENDOR . 'php-urljoin/src/urljoin.php';
|
||||
// Initialize static members
|
||||
try {
|
||||
Format::setWorkingDir(PATH_LIB_FORMATS);
|
||||
Cache::setWorkingDir(PATH_LIB_CACHES);
|
||||
} catch(Exception $e) {
|
||||
error_log($e);
|
||||
header('Content-type: text/plain', true, 500);
|
||||
|
Reference in New Issue
Block a user