As the name says, it is made to be basic and direct.
ResponseFactory
Psr\Http\Message\ResponseFactoryInterface
Name | Description |
---|---|
create | Function create |
Create a new response. | |
createResponse | Function createResponse |
Create a new response. |
Description
public static create (int $code, string $reasonPhrase)
Function create Create a new response.
Parameters
(int) $code
(string) $reasonPhrase
Return Values
\ResponseInterface
Description
public createResponse (int $code, string $reasonPhrase)
Function createResponse Create a new response.
Parameters
(int) $code
(string) $reasonPhrase
Return Values
\ResponseInterface