PHP Класс Neos\Flow\Cli\CommandRequestHandler

Наследование: implements Neos\Flow\Core\RequestHandlerInterface
Показать файл Открыть проект

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

Свойство Тип Описание
$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