mirror of
https://github.com/friendica/friendica
synced 2025-04-19 09:10:12 +00:00
Use a factory
This commit is contained in:
parent
b4e332ccdc
commit
129f63cf11
1 changed files with 5 additions and 6 deletions
|
@ -24,17 +24,16 @@
|
||||||
use Friendica\Model\User;
|
use Friendica\Model\User;
|
||||||
use Friendica\Content\Conversation\Entity\Channel as ChannelEntity;
|
use Friendica\Content\Conversation\Entity\Channel as ChannelEntity;
|
||||||
use Friendica\Core\L10n;
|
use Friendica\Core\L10n;
|
||||||
use Friendica\Database\Database;
|
|
||||||
use Psr\Log\LoggerInterface;
|
use Psr\Log\LoggerInterface;
|
||||||
|
|
||||||
final class Channel extends \Friendica\BaseModel
|
final class Channel extends \Friendica\BaseFactory
|
||||||
{
|
{
|
||||||
/** @var L10n */
|
/** @var L10n */
|
||||||
protected $l10n;
|
protected $l10n;
|
||||||
|
|
||||||
public function __construct(L10n $l10n, Database $database, LoggerInterface $logger, array $data = [])
|
public function __construct(L10n $l10n, LoggerInterface $logger)
|
||||||
{
|
{
|
||||||
parent::__construct($database, $logger, $data);
|
parent::__construct($logger);
|
||||||
|
|
||||||
$this->l10n = $l10n;
|
$this->l10n = $l10n;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue