X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FDI.php;h=835f1ffed72619e8412a5a32be08c94527c56475;hb=8e2cc678dc38b3e3447baf587668f2c97b0f5478;hp=4f950bd78eeea17db42c73b61cb35b14a7984490;hpb=b7a460485a354ff11f25bcbf8a5ed7f87a6bfb62;p=friendica.git diff --git a/src/DI.php b/src/DI.php index 4f950bd78e..835f1ffed7 100644 --- a/src/DI.php +++ b/src/DI.php @@ -1,6 +1,6 @@ create(Factory\Api\Friendica\Activities::class); - } - /** * @return Factory\Api\Mastodon\Account */ @@ -398,14 +390,6 @@ abstract class DI return self::$dice->create(Factory\Api\Twitter\User::class); } - /** - * @return Factory\Api\Twitter\DirectMessage - */ - public static function twitterDirectMessage() - { - return self::$dice->create(Factory\Api\Twitter\DirectMessage::class); - } - public static function notificationIntro(): Navigation\Notifications\Factory\Introduction { return self::$dice->create(Navigation\Notifications\Factory\Introduction::class); @@ -503,6 +487,11 @@ abstract class DI return self::$dice->create(Contact\Introduction\Factory\Introduction::class); } + public static function localRelationship(): Contact\LocalRelationship\Repository\LocalRelationship + { + return self::$dice->create(Contact\LocalRelationship\Repository\LocalRelationship::class); + } + public static function permissionSet(): Security\PermissionSet\Repository\PermissionSet { return self::$dice->create(Security\PermissionSet\Repository\PermissionSet::class); @@ -543,9 +532,14 @@ abstract class DI return self::$dice->create(Navigation\Notifications\Factory\Notify::class); } - public static function formattedNotificationFactory(): Navigation\Notifications\Factory\FormattedNotification + public static function formattedNotificationFactory(): Navigation\Notifications\Factory\FormattedNotify + { + return self::$dice->create(Navigation\Notifications\Factory\FormattedNotify::class); + } + + public static function formattedNavNotificationFactory(): Navigation\Notifications\Factory\FormattedNavNotification { - return self::$dice->create(Navigation\Notifications\Factory\FormattedNotification::class); + return self::$dice->create(Navigation\Notifications\Factory\FormattedNavNotification::class); } //