interface HttpMessageFactoryInterface

Creates PSR HTTP Request and Response instances from Symfony ones.

Methods

ServerRequestInterface
createRequest(Request$symfonyRequest)

Creates a PSR-7 Request instance from a Symfony one.

ResponseInterface
createResponse(Response$symfonyResponse)

Creates a PSR-7 Response instance from a Symfony one.

Details

ServerRequestInterface createRequest(Request$symfonyRequest)

Creates a PSR-7 Request instance from a Symfony one.

Parameters

Request $symfonyRequest

Return Value

ServerRequestInterface

ResponseInterface createResponse(Response$symfonyResponse)

Creates a PSR-7 Response instance from a Symfony one.

Parameters

Response $symfonyResponse

Return Value

ResponseInterface