X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FDI.php;h=59f48fcb5f1205d3a9d4087a18aa15535c24ca54;hb=16f5dc92f88d1b73aad59f1b40e60f3cfe4bb672;hp=0b5c9c055849c94b3d793719bfa4ef4589a95001;hpb=b5bc1b0844c0cde24e006fb9dab9edc326933afd;p=friendica.git diff --git a/src/DI.php b/src/DI.php index 0b5c9c0558..59f48fcb5f 100644 --- a/src/DI.php +++ b/src/DI.php @@ -379,6 +379,14 @@ abstract class DI return self::$dice->create(Factory\Api\Mastodon\Status::class); } + /** + * @return Factory\Api\Mastodon\StatusSource + */ + public static function mstdnStatusSource() + { + return self::$dice->create(Factory\Api\Mastodon\StatusSource::class); + } + /** * @return Factory\Api\Mastodon\ScheduledStatus */ @@ -591,6 +599,11 @@ abstract class DI return self::$dice->create(Protocol\Activity::class); } + public static function dsprContact(): Protocol\Diaspora\Repository\DiasporaContact + { + return self::$dice->create(Protocol\Diaspora\Repository\DiasporaContact::class); + } + // // "Security" namespace instances //