mirror of
https://github.com/friendica/friendica
synced 2025-04-27 21:10:11 +00:00
Make $_REQUEST processing independent of sub-calls
- 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
This commit is contained in:
parent
f580d8e5c0
commit
2e4d654c0a
96 changed files with 156 additions and 156 deletions
|
@ -32,33 +32,33 @@ class Unimplemented extends BaseApi
|
|||
/**
|
||||
* @throws \Friendica\Network\HTTPException\InternalServerErrorException
|
||||
*/
|
||||
protected function delete()
|
||||
protected function delete(array $request = [])
|
||||
{
|
||||
$this->response->unsupported(Router::DELETE);
|
||||
$this->response->unsupported(Router::DELETE, $request);
|
||||
}
|
||||
|
||||
/**
|
||||
* @throws \Friendica\Network\HTTPException\InternalServerErrorException
|
||||
*/
|
||||
protected function patch()
|
||||
protected function patch(array $request = [])
|
||||
{
|
||||
$this->response->unsupported(Router::PATCH);
|
||||
$this->response->unsupported(Router::PATCH, $request);
|
||||
}
|
||||
|
||||
/**
|
||||
* @throws \Friendica\Network\HTTPException\InternalServerErrorException
|
||||
*/
|
||||
protected function post(array $request = [], array $post = [])
|
||||
protected function post(array $request = [])
|
||||
{
|
||||
$this->response->unsupported(Router::POST);
|
||||
$this->response->unsupported(Router::POST, $request);
|
||||
}
|
||||
|
||||
/**
|
||||
* @throws \Friendica\Network\HTTPException\InternalServerErrorException
|
||||
*/
|
||||
public function put()
|
||||
public function put(array $request = [])
|
||||
{
|
||||
$this->response->unsupported(Router::PUT);
|
||||
$this->response->unsupported(Router::PUT, $request);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -66,6 +66,6 @@ class Unimplemented extends BaseApi
|
|||
*/
|
||||
protected function rawContent(array $request = [])
|
||||
{
|
||||
$this->response->unsupported(Router::GET);
|
||||
$this->response->unsupported(Router::GET, $request);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue