]> git.mxchange.org Git - friendica.git/blobdiff - src/DI.php
use "random_bytes" instead of "openssl_random_pseudo_bytes"
[friendica.git] / src / DI.php
index 045425b8871df888f67a2cd08914b7ed8874294f..37091a5ab82d5d439f525279975ef054fa508860 100644 (file)
@@ -239,6 +239,14 @@ abstract class DI
                return self::$dice->create(Factory\Api\Mastodon\Account::class);
        }
 
+       /**
+        * @return Factory\Api\Mastodon\Application
+        */
+       public static function mstdnApplication()
+       {
+               return self::$dice->create(Factory\Api\Mastodon\Application::class);
+       }
+
        /**
         * @return Factory\Api\Mastodon\Attachment
         */
@@ -311,6 +319,14 @@ abstract class DI
                return self::$dice->create(Factory\Api\Mastodon\Mention::class);
        }
 
+       /**
+        * @return Factory\Api\Mastodon\Notification
+        */
+       public static function mstdnNotification()
+       {
+               return self::$dice->create(Factory\Api\Mastodon\Notification::class);
+       }
+
        /**
         * @return Factory\Api\Mastodon\Tag
         */