SlimMessageFactory
in package
implements
MessageFactory
FinalYes
Creates Slim 3 messages.
This will be removed in php-http/message2.0. Consider using the official Slim PSR-17 factory
Tags
Table of Contents
Interfaces
- MessageFactory
Properties
Methods
- __construct() : mixed
- createRequest() : mixed
- createResponse() : mixed
Properties
$streamFactory
private
SlimStreamFactory
$streamFactory
$uriFactory
private
SlimUriFactory
$uriFactory
Methods
__construct()
public
__construct() : mixed
createRequest()
public
createRequest(mixed $method, mixed $uri[, array<string|int, mixed> $headers = [] ][, mixed $body = null ][, mixed $protocolVersion = '1.1' ]) : mixed
Parameters
- $method : mixed
- $uri : mixed
- $headers : array<string|int, mixed> = []
- $body : mixed = null
- $protocolVersion : mixed = '1.1'
createResponse()
public
createResponse([mixed $statusCode = 200 ][, mixed $reasonPhrase = null ][, array<string|int, mixed> $headers = [] ][, mixed $body = null ][, mixed $protocolVersion = '1.1' ]) : mixed
Parameters
- $statusCode : mixed = 200
- $reasonPhrase : mixed = null
- $headers : array<string|int, mixed> = []
- $body : mixed = null
- $protocolVersion : mixed = '1.1'