This commit is contained in:
2021-08-31 14:15:10 +08:00
parent 218b4a3137
commit e8f6c583e0
+15 -1
View File
@@ -44,7 +44,6 @@ class Request implements RequestInterface
public ?AuthIdentity $authority = null;
/**
* @return int
*/
@@ -143,6 +142,21 @@ class Request implements RequestInterface
}
/**
* @return array
*/
public function all(): array
{
if (empty($this->parseBody)) {
$this->parseBody = $this->parseBody($this->stream);
}
return array_merge($this->serverRequest->post ?? [],
$this->serverRequest->get ?? [],
is_array($this->parseBody) ? $this->parseBody : []
);
}
/**
* @return string
*/