mirror of
https://github.com/friendica/friendica
synced 2025-04-29 03:04:22 +02:00
Refactoring Core class structures ...
This commit is contained in:
parent
57b4c008cb
commit
b216317477
130 changed files with 1625 additions and 1397 deletions
|
@ -27,9 +27,9 @@ use Friendica\App\BaseURL;
|
|||
use Friendica\BaseFactory;
|
||||
use Friendica\Content\Text\BBCode;
|
||||
use Friendica\Core\L10n;
|
||||
use Friendica\Core\PConfig\IPConfig;
|
||||
use Friendica\Core\PConfig\Capability\IManagePersonalConfigValues;
|
||||
use Friendica\Core\Protocol;
|
||||
use Friendica\Core\Session\ISession;
|
||||
use Friendica\Core\Session\Capability\IHandleSessions;
|
||||
use Friendica\Database\Database;
|
||||
use Friendica\Model\Contact;
|
||||
use Friendica\Module\BaseNotifications;
|
||||
|
@ -51,14 +51,14 @@ class Introduction extends BaseFactory
|
|||
private $baseUrl;
|
||||
/** @var L10n */
|
||||
private $l10n;
|
||||
/** @var IPConfig */
|
||||
/** @var \Friendica\Core\PConfig\Capability\IManagePersonalConfigValues */
|
||||
private $pConfig;
|
||||
/** @var ISession */
|
||||
/** @var \Friendica\Core\Session\Capability\IHandleSessions */
|
||||
private $session;
|
||||
/** @var string */
|
||||
private $nick;
|
||||
|
||||
public function __construct(LoggerInterface $logger, Database $dba, BaseURL $baseUrl, L10n $l10n, App $app, IPConfig $pConfig, ISession $session)
|
||||
public function __construct(LoggerInterface $logger, Database $dba, BaseURL $baseUrl, L10n $l10n, App $app, IManagePersonalConfigValues $pConfig, IHandleSessions $session)
|
||||
{
|
||||
parent::__construct($logger);
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ namespace Friendica\Navigation\Notifications\Repository;
|
|||
use Friendica\App\BaseURL;
|
||||
use Friendica\BaseRepository;
|
||||
use Friendica\Content\Text\Plaintext;
|
||||
use Friendica\Core\Config\IConfig;
|
||||
use Friendica\Core\Config\Capability\IManageConfigValues;
|
||||
use Friendica\Core\Hook;
|
||||
use Friendica\Core\L10n;
|
||||
use Friendica\Core\System;
|
||||
|
@ -33,7 +33,7 @@ class Notify extends BaseRepository
|
|||
/** @var BaseURL */
|
||||
protected $baseUrl;
|
||||
|
||||
/** @var IConfig */
|
||||
/** @var \Friendica\Core\Config\Capability\IManageConfigValues */
|
||||
protected $config;
|
||||
|
||||
/** @var Emailer */
|
||||
|
@ -44,7 +44,7 @@ class Notify extends BaseRepository
|
|||
|
||||
protected static $table_name = 'notify';
|
||||
|
||||
public function __construct(Database $database, LoggerInterface $logger, L10n $l10n, BaseURL $baseUrl, IConfig $config, Emailer $emailer, Factory\Notification $notification, Factory\Notify $factory = null)
|
||||
public function __construct(Database $database, LoggerInterface $logger, L10n $l10n, BaseURL $baseUrl, IManageConfigValues $config, Emailer $emailer, Factory\Notification $notification, Factory\Notify $factory = null)
|
||||
{
|
||||
$this->l10n = $l10n;
|
||||
$this->baseUrl = $baseUrl;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue