X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FDI.php;h=9ed0c5b24d353f5ed5c1c124c31eae1ebce86cd5;hb=06a18abf5a746232c99b5271d907687b30e72651;hp=39efe2a97bfd35feb41fd1e6be02368ca32a58e2;hpb=6aee153bbdad959cce28dd1346c135cdd843f9f8;p=friendica.git diff --git a/src/DI.php b/src/DI.php index 39efe2a97b..9ed0c5b24d 100644 --- a/src/DI.php +++ b/src/DI.php @@ -279,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 */ @@ -383,6 +391,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 */