]> 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 22111781bbafc9df25ba3272b999147c402ed1b5..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
  *
@@ -32,33 +32,33 @@ class Unimplemented extends BaseApi
        /**
         * @throws \Friendica\Network\HTTPException\InternalServerErrorException
         */
-       protected function delete()
+       protected function delete(array $request = [])
        {
-               $this->response->unsupported(Router::DELETE);
+               $this->response->unsupported(Router::DELETE, $request);
        }
 
        /**
         * @throws \Friendica\Network\HTTPException\InternalServerErrorException
         */
-       protected function patch()
+       protected function patch(array $request = [])
        {
-               $this->response->unsupported(Router::PATCH);
+               $this->response->unsupported(Router::PATCH, $request);
        }
 
        /**
         * @throws \Friendica\Network\HTTPException\InternalServerErrorException
         */
-       protected function post(array $request = [], array $post = [])
+       protected function post(array $request = [])
        {
-               $this->response->unsupported(Router::POST);
+               $this->response->unsupported(Router::POST, $request);
        }
 
        /**
         * @throws \Friendica\Network\HTTPException\InternalServerErrorException
         */
-       public function put()
+       public function put(array $request = [])
        {
-               $this->response->unsupported(Router::PUT);
+               $this->response->unsupported(Router::PUT, $request);
        }
 
        /**
@@ -66,6 +66,6 @@ class Unimplemented extends BaseApi
         */
        protected function rawContent(array $request = [])
        {
-               $this->response->unsupported(Router::GET);
+               $this->response->unsupported(Router::GET, $request);
        }
 }