mirror of
https://github.com/friendica/friendica
synced 2025-04-26 01:50: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
|
@ -6,7 +6,7 @@ use Exception;
|
|||
use Friendica\App;
|
||||
use Friendica\Content\Text\BBCode;
|
||||
use Friendica\Content\Text\HTML;
|
||||
use Friendica\Core\Config\PConfiguration;
|
||||
use Friendica\Core\Config\IPConfiguration;
|
||||
use Friendica\Core\L10n\L10n;
|
||||
use Friendica\Core\Protocol;
|
||||
use Friendica\Core\System;
|
||||
|
@ -71,13 +71,13 @@ final class Notify
|
|||
private $args;
|
||||
/** @var App\BaseURL */
|
||||
private $baseUrl;
|
||||
/** @var PConfiguration */
|
||||
/** @var IPConfiguration */
|
||||
private $pConfig;
|
||||
/** @var LoggerInterface */
|
||||
private $logger;
|
||||
|
||||
public function __construct(Database $dba, L10n $l10n, App\Arguments $args, App\BaseURL $baseUrl,
|
||||
PConfiguration $pConfig, LoggerInterface $logger)
|
||||
IPConfiguration $pConfig, LoggerInterface $logger)
|
||||
{
|
||||
$this->dba = $dba;
|
||||
$this->l10n = $l10n;
|
||||
|
|
|
@ -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'];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue