X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FDI.php;h=6461059a8392a4de3c86fc8dd36bf4b8c46b2934;hb=569ad89f1085f13fe0561de3c5c21d3ed6894a48;hp=e259c271a00ac4ef6dc82d13b4e21246b76d89eb;hpb=a643888aebd195ffa3e8c9639e38bf0df412aad1;p=friendica.git diff --git a/src/DI.php b/src/DI.php index e259c271a0..6461059a83 100644 --- a/src/DI.php +++ b/src/DI.php @@ -239,6 +239,14 @@ abstract class DI return self::$dice->create(Factory\Api\Mastodon\Account::class); } + /** + * @return Factory\Api\Mastodon\Attachment + */ + public static function mstdnAttachment() + { + return self::$dice->create(Factory\Api\Mastodon\Attachment::class); + } + /** * @return Factory\Api\Mastodon\Emoji */ @@ -247,6 +255,14 @@ abstract class DI return self::$dice->create(Factory\Api\Mastodon\Emoji::class); } + /** + * @return Factory\Api\Mastodon\Error + */ + public static function mstdnError() + { + return self::$dice->create(Factory\Api\Mastodon\Error::class); + } + /** * @return Factory\Api\Mastodon\Field */