mirror of
https://github.com/friendica/friendica
synced 2025-04-29 10:24:23 +02:00
Introduce Response
for Modules to create a testable way for module responses
This commit is contained in:
parent
ad5b0762b0
commit
561aba18e3
37 changed files with 309 additions and 113 deletions
|
@ -13,9 +13,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 string Returns the content of the module as string
|
||||
* @return IRespondToRequests responding to the request handling
|
||||
*
|
||||
* @throws HTTPException\InternalServerErrorException
|
||||
*/
|
||||
public function run(array $post = [], array $request = []): string;
|
||||
public function run(array $post = [], array $request = []): IRespondToRequests;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue