mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-06 16:46:30 +02:00
refactor: introduce DI container (#4238)
* refactor: introduce DI container * add bin/test
This commit is contained in:
@@ -17,11 +17,8 @@ if (file_exists(__DIR__ . '/../config.ini.php')) {
|
||||
}
|
||||
Configuration::loadConfiguration($config, getenv());
|
||||
|
||||
$logger = new SimpleLogger('rssbridge');
|
||||
$container = require __DIR__ . '/../lib/dependencies.php';
|
||||
|
||||
$logger->addHandler(new StreamHandler('php://stderr', Logger::INFO));
|
||||
|
||||
$cacheFactory = new CacheFactory($logger);
|
||||
$cache = $cacheFactory->create();
|
||||
$cache = $container['cache'];
|
||||
|
||||
$cache->clear();
|
||||
|
Reference in New Issue
Block a user