Creating interfaces for Config/PConfig & fix tests
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
namespace Friendica\Model\User;
|
||||
|
||||
use Friendica\App;
|
||||
use Friendica\Core\Config\Configuration;
|
||||
use Friendica\Core\Config\IConfiguration;
|
||||
|
||||
/**
|
||||
* Interacting with the Friendica Cookie of a user
|
||||
@@ -32,7 +32,7 @@ class Cookie
|
||||
/** @var array The $_COOKIE array */
|
||||
private $cookie;
|
||||
|
||||
public function __construct(Configuration $config, App\BaseURL $baseURL, array $server = [], array $cookie = [])
|
||||
public function __construct(IConfiguration $config, App\BaseURL $baseURL, array $server = [], array $cookie = [])
|
||||
{
|
||||
if (!empty($server['REMOTE_ADDR'])) {
|
||||
$this->remoteAddr = $server['REMOTE_ADDR'];
|
||||
|
||||
Reference in New Issue
Block a user