If any argument is not supplied, the corresponding superglobal value will
be used.
The ServerRequest created is then passed to the fromServer() method in
order to marshal the request URI and headers.
public static fromGlobals ( array $server = null, array $query = null, array $body = null, array $cookies = null, array $files = null ) : |
||
$server | array | $_SERVER superglobal |
$query | array | $_GET superglobal |
$body | array | $_POST superglobal |
$cookies | array | $_COOKIE superglobal |
$files | array | $_FILES superglobal |
return |