mirror of
https://github.com/friendica/friendica
synced 2025-04-25 13:10:11 +00: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
|
@ -4,7 +4,7 @@ namespace Friendica\Factory;
|
|||
|
||||
use Friendica\Core\Cache\Cache;
|
||||
use Friendica\Core\Cache\IMemoryCache;
|
||||
use Friendica\Core\Config\Configuration;
|
||||
use Friendica\Core\Config\IConfiguration;
|
||||
use Friendica\Core\Lock;
|
||||
use Friendica\Database\Database;
|
||||
use Psr\Log\LoggerInterface;
|
||||
|
@ -24,7 +24,7 @@ class LockFactory
|
|||
const DEFAULT_DRIVER = 'default';
|
||||
|
||||
/**
|
||||
* @var Configuration The configuration to read parameters out of the config
|
||||
* @var IConfiguration The configuration to read parameters out of the config
|
||||
*/
|
||||
private $config;
|
||||
|
||||
|
@ -43,7 +43,7 @@ class LockFactory
|
|||
*/
|
||||
private $logger;
|
||||
|
||||
public function __construct(CacheFactory $cacheFactory, Configuration $config, Database $dba, LoggerInterface $logger)
|
||||
public function __construct(CacheFactory $cacheFactory, IConfiguration $config, Database $dba, LoggerInterface $logger)
|
||||
{
|
||||
$this->cacheFactory = $cacheFactory;
|
||||
$this->config = $config;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue