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.
파일 보기 프로젝트 열기: neos/flow-development-collection 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$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