class ServerRequestFactory implements ServerRequestFactoryInterface (View source)

Properties

protected UriFactoryInterface $uriFactory
protected string $defaultUserAgent
protected string $scriptPath
protected string $defaultHttpVersion

Methods

__construct(UriFactoryInterface $uriFactory, string $defaultUserAgent = 'Flow/' . FLOW_VERSION_BRANCH, string $scriptPath = 'index.php', string $defaultHttpVersion = '1.1')

ServerRequestFactory constructor.

ServerRequestInterface
createServerRequest(string $method, $uri, array $serverParams = [])

No description

Details

__construct(UriFactoryInterface $uriFactory, string $defaultUserAgent = 'Flow/' . FLOW_VERSION_BRANCH, string $scriptPath = 'index.php', string $defaultHttpVersion = '1.1')

ServerRequestFactory constructor.

Parameters

UriFactoryInterface $uriFactory
string $defaultUserAgent
string $scriptPath
string $defaultHttpVersion

ServerRequestInterface createServerRequest(string $method, $uri, array $serverParams = [])

No description

Parameters

string $method
$uri
array $serverParams

Return Value

ServerRequestInterface