Documentation

Psr7Adapter
in package

Create a PSR-7 Response from a H5 Controller Response

Tags
author

Ralf Lang lang@b1-systems.de

category

Horde

copyright

2008-2021 Horde LLC

license

http://www.horde.org/licenses/bsd BSD

Table of Contents

$responseFactory  : ResponseFactoryInterface
$streamFactory  : StreamFactoryInterface
__construct()  : mixed
createPsr7Response()  : ResponseInterface
getStatusFromHeader()  : array<string|int, mixed>|null

Properties

$responseFactory

private ResponseFactoryInterface $responseFactory

$streamFactory

private StreamFactoryInterface $streamFactory

Methods

__construct()

public __construct(ResponseFactoryInterface $responseFactory, StreamFactoryInterface $streamFactory) : mixed
Parameters
$responseFactory : ResponseFactoryInterface
$streamFactory : StreamFactoryInterface
Return values
mixed

getStatusFromHeader()

protected getStatusFromHeader(string $name, mixed $value) : array<string|int, mixed>|null
Parameters
$name : string
$value : mixed
Return values
array<string|int, mixed>|null

Search results