eee
This commit is contained in:
@@ -310,6 +310,19 @@ class Request implements ServerRequestInterface
|
||||
return $this->__call__(__FUNCTION__, $name);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @return array
|
||||
*/
|
||||
public function all(): array
|
||||
{
|
||||
$data = $this->getParsedBody();
|
||||
if (is_array($data)) {
|
||||
return $data;
|
||||
}
|
||||
return [];
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the body of the message.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user