Documentation

SignalableCommandInterface

Interface for command reacting to signal.

Tags
author

Grégoire Pineau lyrixx@lyrix.info

Table of Contents

Methods

getSubscribedSignals()  : array<string|int, mixed>
Returns the list of signals to subscribe.
handleSignal()  : int|false
The method will be called when the application is signaled.

Methods

getSubscribedSignals()

Returns the list of signals to subscribe.

public getSubscribedSignals() : array<string|int, mixed>
Return values
array<string|int, mixed>

handleSignal()

The method will be called when the application is signaled.

public handleSignal(int $signal) : int|false
Parameters
$signal : int
Return values
int|false

The exit code to return or false to continue the normal execution


        
On this page

Search results