X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FDI.php;h=0c134f37b48cbf38c4b96cfc117469f6dc11707e;hb=fd7c1d766c2c922909b858f7af6aa440fbc697aa;hp=692d87870d0f6ce905c76cda049eeec6cbfe5940;hpb=32f0c3fb9cab86e91d531ed52589a60796ca6eba;p=friendica.git diff --git a/src/DI.php b/src/DI.php index 692d87870d..0c134f37b4 100644 --- a/src/DI.php +++ b/src/DI.php @@ -99,11 +99,11 @@ abstract class DI } /** - * @return App\Module + * @return App\ModuleController */ public static function module() { - return self::$dice->create(App\Module::class); + return self::$dice->create(App\ModuleController::class); } /** @@ -430,6 +430,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 //