X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FDI.php;h=39e892adcb26e12121bea51991d409af5d4397d4;hb=76ae210527487bea129411e8ed02ac4997d0d89b;hp=83351d34774bb860536e5cd76fd8c6021ae4370a;hpb=dad530802f2af7e3b522d59e73d547812169daf0;p=friendica.git diff --git a/src/DI.php b/src/DI.php index 83351d3477..39e892adcb 100644 --- a/src/DI.php +++ b/src/DI.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica; @@ -260,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 */ @@ -296,10 +323,30 @@ 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 // + /** + * @return Repository\FSuggest; + */ + public static function fsuggest() + { + return self::$dice->create(Repository\FSuggest::class); + } + /** * @return Repository\Introduction */ @@ -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 */