X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FDI.php;h=cb6166692f8ed59e82065bf8f6eb1c58dd4bb154;hb=fcddf24f8808d18c2f5697994d64bddb88d4120a;hp=2c4163722ee1ff6e515bda17babdbcd8a9f0a36d;hpb=1ac9107e5f81fb00665b97565431a9daf31ce180;p=friendica.git diff --git a/src/DI.php b/src/DI.php index 2c4163722e..cb6166692f 100644 --- a/src/DI.php +++ b/src/DI.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica; @@ -228,6 +247,22 @@ abstract class DI return self::$dice->create(Factory\Api\Mastodon\Account::class); } + /** + * @return Factory\Api\Mastodon\Emoji + */ + public static function mstdnEmoji() + { + 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 */ @@ -244,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 */ @@ -273,25 +324,37 @@ abstract class DI } /** - * @return Repository\Notify + * @return Model\Storage\IStorage */ - public static function notify() + public static function storage() { - return self::$dice->create(Repository\Notify::class); + return self::$dice->create(Model\Storage\IStorage::class); } + // + // "Network" namespace + // + /** - * @return Model\Storage\IStorage + * @return Network\IHTTPRequest */ - public static function storage() + public static function httpRequest() { - return self::$dice->create(Model\Storage\IStorage::class); + 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 */ @@ -316,6 +379,14 @@ abstract class DI return self::$dice->create(Repository\ProfileField::class); } + /** + * @return Repository\Notify + */ + public static function notify() + { + return self::$dice->create(Repository\Notify::class); + } + // // "Protocol" namespace instances // @@ -340,6 +411,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 */