PHP Class Symfony\Bridge\PsrHttpMessage\Factory\HttpFoundationFactory

Author: Kévin Dunglas ([email protected])
Inheritance: implements Symfony\Bridge\PsrHttpMessage\HttpFoundationFactoryInterface
显示文件 Open project: symfony/psr-http-message-bridge Class Usage Examples

Public Methods

Method Description
createRequest ( Psr\Http\Message\ServerRequestInterface $psrRequest )
createResponse ( Psr\Http\Message\ResponseInterface $psrResponse )

Protected Methods

Method Description
getTemporaryPath ( ) : string Gets a temporary file path.

Private Methods

Method Description
createCookie ( string $cookie ) : Cookie Creates a Cookie instance from a cookie string.
createUploadedFile ( Psr\Http\Message\UploadedFileInterface $psrUploadedFile ) : Symfony\Component\HttpFoundation\File\UploadedFile Creates Symfony UploadedFile instance from PSR-7 ones.
getFiles ( array $uploadedFiles ) : array Converts to the input array to $_FILES structure.

Method Details

createRequest() public method

public createRequest ( Psr\Http\Message\ServerRequestInterface $psrRequest )
$psrRequest Psr\Http\Message\ServerRequestInterface

createResponse() public method

public createResponse ( Psr\Http\Message\ResponseInterface $psrResponse )
$psrResponse Psr\Http\Message\ResponseInterface

getTemporaryPath() protected method

Gets a temporary file path.
protected getTemporaryPath ( ) : string
return string