X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FDI.php;h=a984bc934f6200fc50b373bd131ea0084a12b3f1;hb=4e4e8cdd5eba4d6c2b6ab0c0321cb68b659eb6fe;hp=2d6eb6ede4352543ad40fada57f56850b9259402;hpb=24d2d0481abe57d3180a63cf738501bb8179d2cd;p=friendica.git diff --git a/src/DI.php b/src/DI.php index 2d6eb6ede4..a984bc934f 100644 --- a/src/DI.php +++ b/src/DI.php @@ -1,6 +1,6 @@ create(Contact\FriendSuggest\Factory\FriendSuggest::class); } + /** + * @return Content\Conversation\Factory\Timeline + */ + public static function TimelineFactory() + { + 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 */ @@ -723,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); + } }