PHP Класс Neos\Flow\Http\Component\ComponentContext

An instance of this class will be passed to each component of the chain allowing them to read/write parameters to/from it. Besides handling of the chain is interrupted as soon as the "cancelled" flag is set. The instance will be created before the bootstrap, so AOP/DI proxying is not possible.
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$httpRequest Neos\Flow\Http\Request The current HTTP request
$httpResponse Neos\Flow\Http\Response The current HTTP response
$parameters array Two-dimensional array storing an parameter dictionary (containing variables that can be read/written by all components) The first dimension is the fully qualified Component name, the second dimension is the identifier for the parameter.

Открытые методы

Метод Описание
__construct ( Request $httpRequest, Response $httpResponse )
getHttpRequest ( ) : Request
getHttpResponse ( ) : Response
getParameter ( string $componentClassName, string $parameterName ) : mixed
replaceHttpRequest ( Request $httpRequest ) : void
replaceHttpResponse ( Response $httpResponse ) : void
setParameter ( string $componentClassName, string $parameterName, mixed $value )

Описание методов

__construct() публичный метод

public __construct ( Request $httpRequest, Response $httpResponse )
$httpRequest Neos\Flow\Http\Request
$httpResponse Neos\Flow\Http\Response

getHttpRequest() публичный метод

public getHttpRequest ( ) : Request
Результат Neos\Flow\Http\Request

getHttpResponse() публичный метод

public getHttpResponse ( ) : Response
Результат Neos\Flow\Http\Response

getParameter() публичный метод

public getParameter ( string $componentClassName, string $parameterName ) : mixed
$componentClassName string
$parameterName string
Результат mixed

replaceHttpRequest() публичный метод

public replaceHttpRequest ( Request $httpRequest ) : void
$httpRequest Neos\Flow\Http\Request
Результат void

replaceHttpResponse() публичный метод

public replaceHttpResponse ( Response $httpResponse ) : void
$httpResponse Neos\Flow\Http\Response
Результат void

setParameter() публичный метод

public setParameter ( string $componentClassName, string $parameterName, mixed $value )
$componentClassName string
$parameterName string
$value mixed

Описание свойств

$httpRequest защищенное свойство

The current HTTP request
protected Request,Neos\Flow\Http $httpRequest
Результат Neos\Flow\Http\Request

$httpResponse защищенное свойство

The current HTTP response
protected Response,Neos\Flow\Http $httpResponse
Результат Neos\Flow\Http\Response

$parameters защищенное свойство

Two-dimensional array storing an parameter dictionary (containing variables that can be read/written by all components) The first dimension is the fully qualified Component name, the second dimension is the identifier for the parameter.
protected array $parameters
Результат array