]> git.mxchange.org Git - friendica.git/blobdiff - src/DI.php
Abuse mail received because of "unusual traffic"
[friendica.git] / src / DI.php
index b1d2b82c1dd3653397418e71ac9fca327452b275..9ed0c5b24d353f5ed5c1c124c31eae1ebce86cd5 100644 (file)
@@ -279,6 +279,14 @@ abstract class DI
                return self::$dice->create(Factory\Api\Mastodon\Relationship::class);
        }
 
+       /**
+        * @return Factory\Api\Twitter\User
+        */
+       public static function twitterUser()
+       {
+               return self::$dice->create(Factory\Api\Twitter\User::class);
+       }
+
        /**
         * @return Factory\Notification\Notification
         */
@@ -315,12 +323,6 @@ abstract class DI
                return self::$dice->create(Model\Storage\IStorage::class);
        }
 
-       /** @return Model\UserService */
-       public static function userService()
-       {
-               return self::$dice->create(Model\UserService::class);
-       }
-
        //
        // "Repository" namespace
        //
@@ -389,6 +391,14 @@ abstract class DI
                return self::$dice->create(Util\ACLFormatter::class);
        }
 
+       /**
+        * @return string
+        */
+       public static function basePath()
+       {
+               return self::$dice->create('$basepath');
+       }
+
        /**
         * @return Util\DateTimeFormat
         */