The information contained in the URI always take precedence
over the other information (server and parameters).
public static create ( string $uri, string $method = 'GET', array $parameters = [], array $cookies = [], array $files = [], array $server = [], string $content = null ) : Request | ||
$uri | string | The URI |
$method | string | The HTTP method |
$parameters | array | The query (GET) or request (POST) parameters |
$cookies | array | The request cookies ($_COOKIE) |
$files | array | The request files ($_FILES) |
$server | array | The server parameters ($_SERVER) |
$content | string | The raw body data |
return | Request | A Request instance |