X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FDI.php;h=cc765fa529c1ec6c1a2f4c4974de013e957cdea6;hb=fd5914011cb5c67b827886a5db0e7760a307ad1d;hp=ecdf92530c41da467129dfa2128267e2a380c3e8;hpb=bacf901d0e0d7a1f3f9a46ef3b13545688f8fd62;p=friendica.git diff --git a/src/DI.php b/src/DI.php index ecdf92530c..cc765fa529 100644 --- a/src/DI.php +++ b/src/DI.php @@ -1,6 +1,6 @@ setDependency(static::config(), static::profiler(), static::logger()); } /** @@ -101,10 +126,7 @@ abstract class DI return self::$dice->create(App\Arguments::class); } - /** - * @return App\BaseURL - */ - public static function baseUrl() + public static function baseUrl(): App\BaseURL { return self::$dice->create(App\BaseURL::class); } @@ -181,6 +203,11 @@ abstract class DI return self::$dice->create(Core\Config\Capability\IManageConfigValues::class); } + public static function configFileManager(): Core\Config\Util\ConfigFileManager + { + return self::$dice->create(Core\Config\Util\ConfigFileManager::class); + } + public static function keyValue(): Core\KeyValueStorage\Capabilities\IManageKeyValuePairs { return self::$dice->create(Core\KeyValueStorage\Capabilities\IManageKeyValuePairs::class); @@ -352,14 +379,6 @@ abstract class DI return self::$dice->create(Factory\Api\Mastodon\Error::class); } - /** - * @return Factory\Api\Mastodon\FollowRequest - */ - public static function mstdnFollowRequest() - { - return self::$dice->create(Factory\Api\Mastodon\FollowRequest::class); - } - /** * @return Factory\Api\Mastodon\Poll */ @@ -602,6 +621,20 @@ abstract class DI return self::$dice->create(Navigation\Notifications\Factory\FormattedNavNotification::class); } + // + // "Federation" namespace instances + // + + public static function deliveryQueueItemFactory(): Federation\Factory\DeliveryQueueItem + { + return self::$dice->create(Federation\Factory\DeliveryQueueItem::class); + } + + public static function deliveryQueueItemRepo(): Federation\Repository\DeliveryQueueItem + { + return self::$dice->create(Federation\Repository\DeliveryQueueItem::class); + } + // // "Protocol" namespace instances //