X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FDI.php;h=4205640cc1efb2541919cd5a2ec7b307b444d55d;hb=2db2f280d58dd775c6afc3fd23c72c498134492b;hp=5ffce5175283c487788c44ae7b4f7787894a59d9;hpb=0a13d7625ff7a1379ed13568039f627106ca2b99;p=friendica.git diff --git a/src/DI.php b/src/DI.php index 5ffce51752..4205640cc1 100644 --- a/src/DI.php +++ b/src/DI.php @@ -555,6 +555,35 @@ abstract class DI return self::$dice->create(Content\Conversation\Factory\Timeline::class); } + /** + * @return Content\Conversation\Factory\Community + */ + public static function CommunityFactory() + { + 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); + } + /** * @return Contact\Introduction\Repository\Introduction */