interface HttpFoundationFactoryInterface

Creates Symfony Request and Response instances from PSR-7 ones.

Methods

Request
createRequest(ServerRequestInterface$psrRequest,bool$streamed =false)

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

Response
createResponse(ResponseInterface$psrResponse,bool$streamed =false)

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

Details

Request createRequest(ServerRequestInterface$psrRequest,bool$streamed =false)

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

Parameters

ServerRequestInterface $psrRequest
bool $streamed

Return Value

Request

Response createResponse(ResponseInterface$psrResponse,bool$streamed =false)

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

Parameters

ResponseInterface $psrResponse
bool $streamed

Return Value

Response