class SlaveRequestHandler implements RequestHandlerInterface (View source)

A special request handler which handles "slave" command requests as used by the interactive shell.

Properties

protected Bootstrap $bootstrap

Methods

__construct(Bootstrap $bootstrap)

Constructor

mixed
canHandleRequest()

This request handler can handle CLI requests.

int
getPriority()

Returns the priority - how eager the handler is to actually handle the request.

void
handleRequest()

Creates an event loop which takes orders from the parent process and executes them in runtime mode.

void
emitDispatchedCommandLineSlaveRequest()

Emits a signal that a CLI slave request was dispatched.

void
handleException(Exception $exception)

Displays a human readable, partly beautified version of the given exception and stops the application, return a non-zero exit code.

Details

__construct(Bootstrap $bootstrap)

Constructor

Parameters

Bootstrap $bootstrap

mixed canHandleRequest()

This request handler can handle CLI requests.

Return Value

mixed

true or an integer > 0 if it can handle the request, otherwise false or an integer < 0

int getPriority()

Returns the priority - how eager the handler is to actually handle the request.

Return Value

int

The priority of the request handler

void handleRequest()

Creates an event loop which takes orders from the parent process and executes them in runtime mode.

Return Value

void

Exceptions

Exception

protected void emitDispatchedCommandLineSlaveRequest()

Emits a signal that a CLI slave request was dispatched.

Return Value

void

protected void handleException(Exception $exception)

Displays a human readable, partly beautified version of the given exception and stops the application, return a non-zero exit code.

Parameters

Exception $exception

Return Value

void