eee
This commit is contained in:
+14
-1
@@ -35,7 +35,7 @@ class Request implements ServerRequestInterface
|
||||
public function __construct()
|
||||
{
|
||||
$this->middlewares = \config('request.middlewares', []);
|
||||
$this->exception = \config('request.exception', ExceptionHandlerDispatcher::class);
|
||||
$this->exception = \config('request.exception', ExceptionHandlerDispatcher::class);
|
||||
}
|
||||
|
||||
|
||||
@@ -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