mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-07-30 21:30:14 +02:00
[cache] Directly implement CacheInterface in FileCache
The function 'prepare' previously implemented in CacheAbstract is specifically required for FileCache and thus belongs to FileCache. Since this change removes all code from CacheAbstract, it can be removed completely.
This commit is contained in:
@@ -196,7 +196,7 @@ abstract class BridgeAbstract implements BridgeInterface {
|
||||
return static::URI;
|
||||
}
|
||||
|
||||
public function setCache(\CacheAbstract $cache){
|
||||
public function setCache(\CacheInterface $cache){
|
||||
$this->cache = $cache;
|
||||
}
|
||||
}
|
||||
|
@@ -1,11 +0,0 @@
|
||||
<?php
|
||||
require_once(__DIR__ . '/CacheInterface.php');
|
||||
abstract class CacheAbstract implements CacheInterface {
|
||||
protected $param;
|
||||
|
||||
public function prepare(array $param){
|
||||
$this->param = $param;
|
||||
|
||||
return $this;
|
||||
}
|
||||
}
|
@@ -14,7 +14,6 @@ require __DIR__ . '/Bridge.php';
|
||||
require __DIR__ . '/BridgeAbstract.php';
|
||||
require __DIR__ . '/FeedExpander.php';
|
||||
require __DIR__ . '/Cache.php';
|
||||
require __DIR__ . '/CacheAbstract.php';
|
||||
|
||||
require __DIR__ . '/validation.php';
|
||||
require __DIR__ . '/html.php';
|
||||
|
Reference in New Issue
Block a user