]> git.mxchange.org Git - friendica.git/blobdiff - src/DI.php
Merge pull request #10160 from annando/issue-10156
[friendica.git] / src / DI.php
index 06397d0e235970bf97244633352b7b27d700106f..c2f53e4df9e533d768f93089ebcfa5e7cd2d7906 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2020, Friendica
+ * @copyright Copyright (C) 2010-2021, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -255,6 +255,14 @@ abstract class DI
                return self::$dice->create(Factory\Api\Mastodon\Emoji::class);
        }
 
+       /**
+        * @return Factory\Api\Mastodon\Error
+        */
+       public static function mstdnError()
+       {
+               return self::$dice->create(Factory\Api\Mastodon\Error::class);
+       }
+
        /**
         * @return Factory\Api\Mastodon\Field
         */
@@ -403,11 +411,11 @@ abstract class DI
        }
 
        /**
-        * @return Repository\Notify
+        * @return Repository\Notification
         */
        public static function notify()
        {
-               return self::$dice->create(Repository\Notify::class);
+               return self::$dice->create(Repository\Notification::class);
        }
 
        //