]> git.mxchange.org Git - friendica.git/blobdiff - src/DI.php
Remove tracking pixels when importing feeds
[friendica.git] / src / DI.php
index b1d2b82c1dd3653397418e71ac9fca327452b275..cb6166692f8ed59e82065bf8f6eb1c58dd4bb154 100644 (file)
@@ -279,6 +279,22 @@ abstract class DI
                return self::$dice->create(Factory\Api\Mastodon\Relationship::class);
        }
 
+       /**
+        * @return Factory\Api\Mastodon\Status
+        */
+       public static function mstdnStatus()
+       {
+               return self::$dice->create(Factory\Api\Mastodon\Status::class);
+       }
+
+       /**
+        * @return Factory\Api\Twitter\User
+        */
+       public static function twitterUser()
+       {
+               return self::$dice->create(Factory\Api\Twitter\User::class);
+       }
+
        /**
         * @return Factory\Notification\Notification
         */
@@ -315,10 +331,16 @@ abstract class DI
                return self::$dice->create(Model\Storage\IStorage::class);
        }
 
-       /** @return Model\UserService */
-       public static function userService()
+       //
+       // "Network" namespace
+       //
+
+       /**
+        * @return Network\IHTTPRequest
+        */
+       public static function httpRequest()
        {
-               return self::$dice->create(Model\UserService::class);
+               return self::$dice->create(Network\IHTTPRequest::class);
        }
 
        //
@@ -389,6 +411,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
         */