PHP 클래스 Neos\Flow\Cli\CommandRequestHandler

상속: implements Neos\Flow\Core\RequestHandlerInterface
파일 보기 프로젝트 열기: neos/flow-development-collection

보호된 프로퍼티들

프로퍼티 타입 설명
$bootstrap Neos\Flow\Core\Bootstrap
$dispatcher Neos\Flow\Mvc\Dispatcher
$objectManager Neos\Flow\ObjectManagement\ObjectManagerInterface
$request Request
$response Response

공개 메소드들

메소드 설명
__construct ( Bootstrap $bootstrap )
canHandleRequest ( ) : boolean This request handler can handle CLI requests.
exitIfCompiletimeCommandWasNotCalledCorrectly ( string $runlevel ) : void Checks if compile time command was not recognized as such, then runlevel was booted but it turned out that in fact the command is a compile time command.
getPriority ( ) : integer Returns the priority - how eager the handler is to actually handle the request.
handleRequest ( ) : void Handles a command line request.

보호된 메소드들

메소드 설명
boot ( string $runlevel ) : void Initializes the matching boot sequence depending on the type of the command (RUNLEVEL_RUNTIME or RUNLEVEL_COMPILETIME) and manually injects the necessary dependencies of this request handler.
shutdown ( string $runlevel ) : void Starts the shutdown sequence

메소드 상세

__construct() 공개 메소드

public __construct ( Bootstrap $bootstrap )
$bootstrap Neos\Flow\Core\Bootstrap

boot() 보호된 메소드

Initializes the matching boot sequence depending on the type of the command (RUNLEVEL_RUNTIME or RUNLEVEL_COMPILETIME) and manually injects the necessary dependencies of this request handler.
protected boot ( string $runlevel ) : void
$runlevel string one of the Bootstrap::RUNLEVEL_* constants
리턴 void

canHandleRequest() 공개 메소드

This request handler can handle CLI requests.
public canHandleRequest ( ) : boolean
리턴 boolean If the request is a CLI request, TRUE otherwise FALSE

exitIfCompiletimeCommandWasNotCalledCorrectly() 공개 메소드

This happens if the user doesn't specify the full command identifier.
public exitIfCompiletimeCommandWasNotCalledCorrectly ( string $runlevel ) : void
$runlevel string one of the Bootstrap::RUNLEVEL_* constants
리턴 void

getPriority() 공개 메소드

Returns the priority - how eager the handler is to actually handle the request.
public getPriority ( ) : integer
리턴 integer The priority of the request handler.

handleRequest() 공개 메소드

While booting, the Object Manager is not yet available for retrieving the CommandExceptionHandler. For this purpose, possible occurring exceptions at this stage are caught manually and treated the same way the CommandExceptionHandler treats exceptions on itself anyways.
public handleRequest ( ) : void
리턴 void

shutdown() 보호된 메소드

Starts the shutdown sequence
protected shutdown ( string $runlevel ) : void
$runlevel string one of the Bootstrap::RUNLEVEL_* constants
리턴 void

프로퍼티 상세

$bootstrap 보호되어 있는 프로퍼티

protected Bootstrap,Neos\Flow\Core $bootstrap
리턴 Neos\Flow\Core\Bootstrap

$dispatcher 보호되어 있는 프로퍼티

protected Dispatcher,Neos\Flow\Mvc $dispatcher
리턴 Neos\Flow\Mvc\Dispatcher

$objectManager 보호되어 있는 프로퍼티

protected ObjectManagerInterface,Neos\Flow\ObjectManagement $objectManager
리턴 Neos\Flow\ObjectManagement\ObjectManagerInterface

$request 보호되어 있는 프로퍼티

protected Request,Neos\Flow\Cli $request
리턴 Request

$response 보호되어 있는 프로퍼티

protected Response,Neos\Flow\Cli $response
리턴 Response