]> git.mxchange.org Git - friendica.git/commitdiff
Use a factory
authorMichael <heluecht@pirati.ca>
Thu, 7 Sep 2023 17:38:33 +0000 (17:38 +0000)
committerMichael <heluecht@pirati.ca>
Thu, 7 Sep 2023 17:38:33 +0000 (17:38 +0000)
src/Content/Conversation/Factory/Channel.php

index 702eab67ce4adde4f24ee8baf5373dcd108bf8fd..4eda881bd4f1a4956706474aeedea2171ce900bf 100644 (file)
  *
  */
 
- 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
         *