protected prepareRequest ( string $path = '', array $query = [], array $params = [], string $method = Request::METHOD_GET, array $headers = [] ) : Psr\Http\Message\ServerRequestInterface | |
||
$path | string | Path part of URI http://host/module/controller/path |
$query | array | $_GET params |
$params | array | $_POST params |
$method | string | HTTP method |
$headers | array | HTTP headers |
return | Psr\Http\Message\ServerRequestInterface | |