mirror of
https://github.com/friendica/friendica
synced 2025-04-29 10:24:23 +02:00
Replace IRespondToRequests with PSR-7 ResponseInterface
This commit is contained in:
parent
ca5c40c97e
commit
7cd85873ee
17 changed files with 96 additions and 92 deletions
|
@ -3,6 +3,7 @@
|
|||
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
|
||||
|
@ -13,9 +14,9 @@ interface ICanHandleRequests
|
|||
* @param array $post The $_POST content (in case of POST)
|
||||
* @param array $request The $_REQUEST content (in case of GET, POST)
|
||||
*
|
||||
* @return IRespondToRequests responding to the request handling
|
||||
* @return ResponseInterface responding to the request handling
|
||||
*
|
||||
* @throws HTTPException\InternalServerErrorException
|
||||
*/
|
||||
public function run(array $post = [], array $request = []): IRespondToRequests;
|
||||
public function run(array $post = [], array $request = []): ResponseInterface;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue