X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FDI.php;h=39e892adcb26e12121bea51991d409af5d4397d4;hb=4fe3b349ba56fb6d7853dad426182662f4d754c1;hp=1d092439f2d9560902b336f088285accddaeb794;hpb=34f4aedb87e403ef276fa780bcaaeb280336c0f4;p=friendica.git diff --git a/src/DI.php b/src/DI.php index 1d092439f2..39e892adcb 100644 --- a/src/DI.php +++ b/src/DI.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica; @@ -236,6 +255,14 @@ abstract class DI return self::$dice->create(Factory\Api\Mastodon\Emoji::class); } + /** + * @return Factory\Api\Mastodon\Field + */ + public static function mstdnField() + { + return self::$dice->create(Factory\Api\Mastodon\Field::class); + } + /** * @return Factory\Api\Mastodon\FollowRequest */ @@ -252,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 */ @@ -288,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 // @@ -356,6 +403,14 @@ abstract class DI return self::$dice->create(Util\ACLFormatter::class); } + /** + * @return string + */ + public static function basePath() + { + return self::$dice->create('$basepath'); + } + /** * @return Util\DateTimeFormat */