mirror of
https://git.friendi.ca/friendica/friendica.git
synced 2025-06-08 20:24:26 +02:00
Creating interfaces for Config/PConfig & fix tests
This commit is contained in:
parent
4835f1185f
commit
c1dbb25656
54 changed files with 349 additions and 285 deletions
|
@ -3,7 +3,7 @@
|
|||
namespace Friendica\Core\Cache;
|
||||
|
||||
use Exception;
|
||||
use Friendica\Core\Config\Configuration;
|
||||
use Friendica\Core\Config\IConfiguration;
|
||||
use Redis;
|
||||
|
||||
/**
|
||||
|
@ -22,7 +22,7 @@ class RedisCache extends Cache implements IMemoryCache
|
|||
/**
|
||||
* @throws Exception
|
||||
*/
|
||||
public function __construct(string $hostname, Configuration $config)
|
||||
public function __construct(string $hostname, IConfiguration $config)
|
||||
{
|
||||
if (!class_exists('Redis', false)) {
|
||||
throw new Exception('Redis class isn\'t available');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue