X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FDI.php;h=39e892adcb26e12121bea51991d409af5d4397d4;hb=4fe3b349ba56fb6d7853dad426182662f4d754c1;hp=c89315c0ec98897e532d5eac0837d163eceae43d;hpb=1b0a8ec5c0e46e2ef45004b0c1f65498c5b16b36;p=friendica.git diff --git a/src/DI.php b/src/DI.php index c89315c0ec..39e892adcb 100644 --- a/src/DI.php +++ b/src/DI.php @@ -279,6 +279,14 @@ abstract class DI return self::$dice->create(Factory\Api\Mastodon\Relationship::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 +323,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 //