]> git.mxchange.org Git - friendica.git/blobdiff - src/Capabilities/ICanHandleRequests.php
Update src/Capabilities/ICanHandleRequests.php
[friendica.git] / src / Capabilities / ICanHandleRequests.php
index 0e1582bf64080e582fffaae52311a5492c05b5ce..1d02be4397dcd7bbe748fc621452d400e37c3e9b 100644 (file)
@@ -10,10 +10,10 @@ interface ICanHandleRequests
        /**
         * Initialization method common to both content() and post()
         *
-        * Extend this method if you need to do any shared processing before both
+        * Extend this method if you need to do any shared processing before either
         * content() or post()
         */
-       public static function init(array $parameters = []);
+       public function init();
 
        /**
         * Module GET method to display raw content from technical endpoints
@@ -21,7 +21,7 @@ interface ICanHandleRequests
         * Extend this method if the module is supposed to return communication data,
         * e.g. from protocol implementations.
         */
-       public static function rawContent(array $parameters = []);
+       public function rawContent();
 
        /**
         * Module GET method to display any content
@@ -29,10 +29,8 @@ interface ICanHandleRequests
         * Extend this method if the module is supposed to return any display
         * through a GET request. It can be an HTML page through templating or a
         * XML feed or a JSON output.
-        *
-        * @return string
         */
-       public static function content(array $parameters = []);
+       public function content(): string;
 
        /**
         * Module DELETE method to process submitted data
@@ -40,7 +38,7 @@ interface ICanHandleRequests
         * Extend this method if the module is supposed to process DELETE requests.
         * Doesn't display any content
         */
-       public static function delete(array $parameters = []);
+       public function delete();
 
        /**
         * Module PATCH method to process submitted data
@@ -48,7 +46,7 @@ interface ICanHandleRequests
         * Extend this method if the module is supposed to process PATCH requests.
         * Doesn't display any content
         */
-       public static function patch(array $parameters = []);
+       public function patch();
 
        /**
         * Module POST method to process submitted data
@@ -56,14 +54,7 @@ interface ICanHandleRequests
         * Extend this method if the module is supposed to process POST requests.
         * Doesn't display any content
         */
-       public static function post(array $parameters = []);
-
-       /**
-        * Called after post()
-        *
-        * Unknown purpose
-        */
-       public static function afterpost(array $parameters = []);
+       public function post();
 
        /**
         * Module PUT method to process submitted data
@@ -71,9 +62,7 @@ interface ICanHandleRequests
         * Extend this method if the module is supposed to process PUT requests.
         * Doesn't display any content
         */
-       public static function put(array $parameters = []);
-
-       public static function getClassName(): string;
+       public function put();
 
-       public static function getParameters(): array;
+       public function getClassName(): string;
 }