X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FDI.php;h=cb6166692f8ed59e82065bf8f6eb1c58dd4bb154;hb=bf2ca5fcf952e290e8507b29afaa1c9645909e5a;hp=c89315c0ec98897e532d5eac0837d163eceae43d;hpb=9fb035ee7926a0836e38e6e56e7be59ae3b9b3c1;p=friendica.git diff --git a/src/DI.php b/src/DI.php index c89315c0ec..cb6166692f 100644 --- a/src/DI.php +++ b/src/DI.php @@ -279,6 +279,22 @@ abstract class DI return self::$dice->create(Factory\Api\Mastodon\Relationship::class); } + /** + * @return Factory\Api\Mastodon\Status + */ + public static function mstdnStatus() + { + return self::$dice->create(Factory\Api\Mastodon\Status::class); + } + + /** + * @return Factory\Api\Twitter\User + */ + public static function twitterUser() + { + return self::$dice->create(Factory\Api\Twitter\User::class); + } + /** * @return Factory\Notification\Notification */ @@ -315,6 +331,18 @@ abstract class DI return self::$dice->create(Model\Storage\IStorage::class); } + // + // "Network" namespace + // + + /** + * @return Network\IHTTPRequest + */ + public static function httpRequest() + { + return self::$dice->create(Network\IHTTPRequest::class); + } + // // "Repository" namespace //