]> git.mxchange.org Git - friendica.git/blobdiff - src/DI.php
Merge pull request #10912 from MrPetovan/bug/fatal-errors
[friendica.git] / src / DI.php
index 1ba46e23edf37ccfc8dd0f2b331a443f1702bb18..28df28a3258a864f087fd9a28c86dd118c15410b 100644 (file)
@@ -22,7 +22,6 @@
 namespace Friendica;
 
 use Dice\Dice;
-use Friendica\Security\PermissionSet\Depository\PermissionSet;
 use Psr\Log\LoggerInterface;
 
 /**
@@ -436,35 +435,39 @@ abstract class DI
        }
 
        /**
-        * @return Repository\Introduction
+        * @return Contact\Introduction\Depository\Introduction
         */
        public static function intro()
        {
-               return self::$dice->create(Repository\Introduction::class);
+               return self::$dice->create(Contact\Introduction\Depository\Introduction::class);
        }
 
        /**
-        * @return PermissionSet
+        * @return Contact\Introduction\Factory\Introduction
         */
-       public static function permissionSet()
+       public static function introFactory()
        {
-               return self::$dice->create(PermissionSet::class);
+               return self::$dice->create(Contact\Introduction\Factory\Introduction::class);
        }
 
-       /**
-        * @return \Friendica\Security\PermissionSet\Factory\PermissionSet
-        */
-       public static function permissionSetFactory()
+       public static function permissionSet(): Security\PermissionSet\Depository\PermissionSet
        {
-               return self::$dice->create(\Friendica\Security\PermissionSet\Factory\PermissionSet::class);
+               return self::$dice->create(Security\PermissionSet\Depository\PermissionSet::class);
        }
 
-       /**
-        * @return Repository\ProfileField
-        */
-       public static function profileField()
+       public static function permissionSetFactory(): Security\PermissionSet\Factory\PermissionSet
+       {
+               return self::$dice->create(Security\PermissionSet\Factory\PermissionSet::class);
+       }
+
+       public static function profileField(): Profile\ProfileField\Depository\ProfileField
+       {
+               return self::$dice->create(Profile\ProfileField\Depository\ProfileField::class);
+       }
+
+       public static function profileFieldFactory(): Profile\ProfileField\Factory\ProfileField
        {
-               return self::$dice->create(Repository\ProfileField::class);
+               return self::$dice->create(Profile\ProfileField\Factory\ProfileField::class);
        }
 
        public static function notification(): Navigation\Notifications\Depository\Notification