ResponseFactory implements ResponseFactoryInterface
Note that this is not public API, use PSR-17 interfaces instead.
Attributes
- #[AsAlias]
 - \Psr\Http\Message\ResponseFactoryInterface::class
 - $public: true
 
Table of Contents
Interfaces
- ResponseFactoryInterface
 
Methods
- createResponse() : ResponseInterface
 - Create a new response.
 
Methods
createResponse()
Create a new response.
    public
                    createResponse([int $code = 200 ][, string $reasonPhrase = '' ]) : ResponseInterface
    Parameters
- $code : int = 200
 - 
                    
HTTP status code; defaults to 200
 - $reasonPhrase : string = ''
 - 
                    
Reason phrase to associate with status code