ServerRequestFactory
in package
implements
ServerRequestFactoryInterface
PSR-17 server request factory class
Tags
Table of Contents
Interfaces
- ServerRequestFactoryInterface
Methods
- createServerRequest() : ServerRequestInterface
- Create a new server request - does not read PHP superglobals, per PSR-17
Methods
createServerRequest()
Create a new server request - does not read PHP superglobals, per PSR-17
public
createServerRequest(string $method, UriInterface|string $uri[, array<string|int, mixed> $serverParams = [] ]) : ServerRequestInterface
Parameters
- $method : string
- $uri : UriInterface|string
- $serverParams : array<string|int, mixed> = []