X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FCapabilities%2FICanHandleRequests.php;h=154eae69e5b65ae534fa3057bdf09b4839a8efcf;hb=acba7d25a02827e46298bbb380b96b8ef4e19ca4;hp=6c4ae51385410f49c73178ba493215f10385c4cd;hpb=8bdd90066f82a7ff1be36be3c6c3b49800a078c8;p=friendica.git diff --git a/src/Capabilities/ICanHandleRequests.php b/src/Capabilities/ICanHandleRequests.php index 6c4ae51385..154eae69e5 100644 --- a/src/Capabilities/ICanHandleRequests.php +++ b/src/Capabilities/ICanHandleRequests.php @@ -1,8 +1,28 @@ . + * + */ namespace Friendica\Capabilities; use Friendica\Network\HTTPException; +use Psr\Http\Message\ResponseInterface; /** * This interface provides the capability to handle requests from clients and returns the desired outcome @@ -10,12 +30,11 @@ use Friendica\Network\HTTPException; interface ICanHandleRequests { /** - * @param array $post The $_POST content (in case of POST) - * @param array $request The $_REQUEST content (in case of GET, POST) + * @param array $request The $_REQUEST content (including content from the PHP input stream) * - * @return string Returns the content of the module as string + * @return ResponseInterface responding to the request handling * * @throws HTTPException\InternalServerErrorException */ - public function run(array $post = [], array $request = []): string; + public function run(array $request = []): ResponseInterface; }