X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FDI.php;h=190b46a05f4c66344de1fdf04464fd4bf6c9f4bb;hb=7488a793a89fc9f98fabb4ce9afb1f2843c41355;hp=692d87870d0f6ce905c76cda049eeec6cbfe5940;hpb=19d62621d535802a9172749b55cbbe4eab0342f4;p=friendica.git diff --git a/src/DI.php b/src/DI.php index 692d87870d..190b46a05f 100644 --- a/src/DI.php +++ b/src/DI.php @@ -98,14 +98,6 @@ abstract class DI return self::$dice->create(App\Mode::class); } - /** - * @return App\Module - */ - public static function module() - { - return self::$dice->create(App\Module::class); - } - /** * @return App\Page */ @@ -270,6 +262,14 @@ abstract class DI // "Factory" namespace instances // + /** + * @return Factory\Api\Friendica\Activities + */ + public static function friendicaActivities() + { + return self::$dice->create(Factory\Api\Friendica\Activities::class); + } + /** * @return Factory\Api\Mastodon\Account */ @@ -382,6 +382,14 @@ abstract class DI return self::$dice->create(Factory\Api\Mastodon\Notification::class); } + /** + * @return Factory\Api\Twitter\Status + */ + public static function twitterStatus() + { + return self::$dice->create(Factory\Api\Twitter\Status::class); + } + /** * @return Factory\Api\Twitter\User */ @@ -430,6 +438,15 @@ abstract class DI return self::$dice->create(Model\Log\ParsedLogIterator::class); } + // + // "Module" namespace + // + + public static function apiResponse(): Module\Api\ApiResponse + { + return self::$dice->create(Module\Api\ApiResponse::class); + } + // // "Network" namespace //