]> git.mxchange.org Git - friendica.git/blob - src/Capabilities/ICanHandleRequests.php
Fix Tos Module
[friendica.git] / src / Capabilities / ICanHandleRequests.php
1 <?php
2
3 namespace Friendica\Capabilities;
4
5 use Friendica\Network\HTTPException;
6 use Psr\Http\Message\ResponseInterface;
7
8 /**
9  * This interface provides the capability to handle requests from clients and returns the desired outcome
10  */
11 interface ICanHandleRequests
12 {
13         /**
14          * @param array $post    The $_POST content (in case of POST)
15          * @param array $request The $_REQUEST content (in case of GET, POST)
16          *
17          * @return ResponseInterface responding to the request handling
18          *
19          * @throws HTTPException\InternalServerErrorException
20          */
21         public function run(array $post = [], array $request = []): ResponseInterface;
22 }