mirror of
https://github.com/friendica/friendica
synced 2024-05-12 08:29:39 +02:00
Philipp Holzer
2e4d654c0a
- Move HTTPInputData::process() into App::runFrontend() - Pass $_REQUEST (including processed Input) to every Module method - Delete $_POST parameters at Module post() calls because of $_REQUEST
22 lines
561 B
PHP
22 lines
561 B
PHP
<?php
|
|
|
|
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
|
|
*/
|
|
interface ICanHandleRequests
|
|
{
|
|
/**
|
|
* @param array $request The $_REQUEST content (including content from the PHP input stream)
|
|
*
|
|
* @return ResponseInterface responding to the request handling
|
|
*
|
|
* @throws HTTPException\InternalServerErrorException
|
|
*/
|
|
public function run(array $request = []): ResponseInterface;
|
|
}
|