SlaveRequestHandler
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
This request handler can handle CLI requests.
Returns the priority - how eager the handler is to actually handle the request.
Creates an event loop which takes orders from the parent process and executes them in runtime mode.
Emits a signal that a CLI slave request was dispatched.
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
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.
protected void
emitDispatchedCommandLineSlaveRequest()
Emits a signal that a CLI slave request was dispatched.
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.