]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Api/Mastodon/Unimplemented.php
Merge pull request #13176 from MrPetovan/bug/warnings
[friendica.git] / src / Module / Api / Mastodon / Unimplemented.php
index d346dc7577a5a0f5b48318bcdca57e49650da666..81dada2ec97522211a2d98cebcdda1ebc559c571 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2010-2021, the Friendica project
+ * @copyright Copyright (C) 2010-2023, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -22,7 +22,6 @@
 namespace Friendica\Module\Api\Mastodon;
 
 use Friendica\App\Router;
-use Friendica\DI;
 use Friendica\Module\BaseApi;
 
 /**
@@ -33,40 +32,40 @@ class Unimplemented extends BaseApi
        /**
         * @throws \Friendica\Network\HTTPException\InternalServerErrorException
         */
-       public static function delete()
+       protected function delete(array $request = [])
        {
-               DI::apiResponse()->unsupported(Router::DELETE);
+               $this->response->unsupported(Router::DELETE, $request);
        }
 
        /**
         * @throws \Friendica\Network\HTTPException\InternalServerErrorException
         */
-       public static function patch()
+       protected function patch(array $request = [])
        {
-               DI::apiResponse()->unsupported(Router::PATCH);
+               $this->response->unsupported(Router::PATCH, $request);
        }
 
        /**
         * @throws \Friendica\Network\HTTPException\InternalServerErrorException
         */
-       public static function post()
+       protected function post(array $request = [])
        {
-               DI::apiResponse()->unsupported(Router::POST);
+               $this->response->unsupported(Router::POST, $request);
        }
 
        /**
         * @throws \Friendica\Network\HTTPException\InternalServerErrorException
         */
-       public static function put()
+       public function put(array $request = [])
        {
-               DI::apiResponse()->unsupported(Router::PUT);
+               $this->response->unsupported(Router::PUT, $request);
        }
 
        /**
         * @throws \Friendica\Network\HTTPException\InternalServerErrorException
         */
-       public static function rawContent()
+       protected function rawContent(array $request = [])
        {
-               DI::apiResponse()->unsupported(Router::GET);
+               $this->response->unsupported(Router::GET, $request);
        }
 }