aboutsummaryrefslogtreecommitdiff
path: root/lib/CacheFactory.php
diff options
context:
space:
mode:
authorGravatar Dag <me@dvikan.no> 2024-08-29 22:48:59 +0200
committerGravatar GitHub <noreply@github.com> 2024-08-29 22:48:59 +0200
commit58544cd61a465102bebc315b4467e4e45d587723 (patch)
treeb4cba82d80591078ec7564d076ccf49c13e6cc0f /lib/CacheFactory.php
parente010fd4d52e3273d6ba2d2d6f45e5a58880ba043 (diff)
downloadrss-bridge-58544cd61a465102bebc315b4467e4e45d587723.tar.gz
rss-bridge-58544cd61a465102bebc315b4467e4e45d587723.tar.zst
rss-bridge-58544cd61a465102bebc315b4467e4e45d587723.zip
refactor: introduce DI container (#4238)
* refactor: introduce DI container * add bin/test
Diffstat (limited to 'lib/CacheFactory.php')
-rw-r--r--lib/CacheFactory.php4
1 files changed, 0 insertions, 4 deletions
diff --git a/lib/CacheFactory.php b/lib/CacheFactory.php
index 90aa21ba..47bbbf72 100644
--- a/lib/CacheFactory.php
+++ b/lib/CacheFactory.php
@@ -14,10 +14,6 @@ class CacheFactory
public function create(string $name = null): CacheInterface
{
- $name ??= Configuration::getConfig('cache', 'type');
- if (!$name) {
- throw new \Exception('No cache type configured');
- }
$cacheNames = [];
foreach (scandir(PATH_LIB_CACHES) as $file) {
if (preg_match('/^([^.]+)Cache\.php$/U', $file, $m)) {