]> git.mxchange.org Git - friendica.git/blobdiff - src/DI.php
Set allocated max width for inline images we have dimensions of
[friendica.git] / src / DI.php
index 7c221b5efe310669d900bfe46eb6520f0cc65cf1..4205640cc1efb2541919cd5a2ec7b307b444d55d 100644 (file)
@@ -556,11 +556,32 @@ abstract class DI
        }
 
        /**
-        * @return Content\Conversation\Repository\Channel
+        * @return Content\Conversation\Factory\Community
         */
-       public static function ChannelRepository()
+       public static function CommunityFactory()
        {
-               return self::$dice->create(Content\Conversation\Repository\Channel::class);
+               return self::$dice->create(Content\Conversation\Factory\Community::class);
+       }
+
+       /**
+        * @return Content\Conversation\Factory\Channel
+        */
+       public static function ChannelFactory()
+       {
+               return self::$dice->create(Content\Conversation\Factory\Channel::class);
+       }
+
+       public static function userDefinedChannel(): Content\Conversation\Repository\UserDefinedChannel
+       {
+               return self::$dice->create(Content\Conversation\Repository\UserDefinedChannel::class);
+       }
+
+       /**
+        * @return Content\Conversation\Factory\Network
+        */
+       public static function NetworkFactory()
+       {
+               return self::$dice->create(Content\Conversation\Factory\Network::class);
        }
 
        /**
@@ -739,4 +760,9 @@ abstract class DI
        {
                return self::$dice->create(Util\Emailer::class);
        }
+
+       public static function postMediaRepository(): Content\Post\Repository\PostMedia
+       {
+               return self::$dice->create(Content\Post\Repository\PostMedia::class);
+       }
 }