From 129f63cf1150c26d9d9979373161d21e94c7a92c Mon Sep 17 00:00:00 2001 From: Michael Date: Thu, 7 Sep 2023 17:38:33 +0000 Subject: [PATCH] Use a factory --- src/Content/Conversation/Factory/Channel.php | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/Content/Conversation/Factory/Channel.php b/src/Content/Conversation/Factory/Channel.php index 702eab67c..4eda881bd 100644 --- a/src/Content/Conversation/Factory/Channel.php +++ b/src/Content/Conversation/Factory/Channel.php @@ -19,26 +19,25 @@ * */ - namespace Friendica\Content\Conversation\Factory; +namespace Friendica\Content\Conversation\Factory; use Friendica\Model\User; use Friendica\Content\Conversation\Entity\Channel as ChannelEntity; use Friendica\Core\L10n; -use Friendica\Database\Database; use Psr\Log\LoggerInterface; -final class Channel extends \Friendica\BaseModel +final class Channel extends \Friendica\BaseFactory { /** @var 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; } - + /** * List of available channels *