As the name says, it is made to be basic and direct.
ServerRequestFactory class
Psr\Http\Message\ServerRequestFactoryInterface
Name | Description |
---|---|
create | Function create |
Create a new server request. | |
createFromArray | Function createFromArray |
Create a instance of ServerRequestInterface object | |
createServerRequest | Function createServerRequest |
Create a new server request. |
Description
public static create (string $method, \UriInterface|string $uri, array $params)
Function create Create a new server request.
Note that server-params are taken precisely as given - no parsing/processing
of the given values is performed, and, in particular, no attempt is made to
determine the HTTP method or URI, which must be provided explicitly.
Parameters
(string) $method
(\UriInterface|string) $uri
(array) $params
Return Values
\ServerRequestInterface
Description
public static createFromArray (array $params)
Function createFromArray Create a instance of ServerRequestInterface object
Parameters
(array) $params
Return Values
\ServerRequestInterface
Description
public createServerRequest (string $method, \UriInterface|string $uri, array $serverParams)
Function createServerRequest Create a new server request.
Note that server-params are taken precisely as given - no parsing/processing
of the given values is performed, and, in particular, no attempt is made to
determine the HTTP method or URI, which must be provided explicitly.
Parameters
(string) $method
(\UriInterface|string) $uri
(array) $serverParams
Return Values
\ServerRequestInterface