X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FDI.php;h=c89315c0ec98897e532d5eac0837d163eceae43d;hb=3cc3bfe531b9e4e3f77d906cf279e1181c8cafa3;hp=1d092439f2d9560902b336f088285accddaeb794;hpb=34f4aedb87e403ef276fa780bcaaeb280336c0f4;p=friendica.git diff --git a/src/DI.php b/src/DI.php index 1d092439f2..c89315c0ec 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 */ @@ -356,6 +383,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 */