Psr7Adapter
in package
Create a PSR-7 Response from a H5 Controller Response
Tags
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 —createPsr7Response()
public
createPsr7Response(Horde_Controller_Response $response) : ResponseInterface
Parameters
- $response : Horde_Controller_Response
Return values
ResponseInterface —getStatusFromHeader()
protected
getStatusFromHeader(string $name, mixed $value) : array<string|int, mixed>|null
Parameters
- $name : string
- $value : mixed