interface SignalableCommandInterface
Interface for command reacting to signal.
@author Grégoire Pineau <lyrixx@lyrix.info>
Hierarchy
- interface \Symfony\Component\Console\Command\SignalableCommandInterface
Expanded class hierarchy of SignalableCommandInterface
All classes that implement SignalableCommandInterface
1 file declares its use of SignalableCommandInterface
- Application.php in vendor/
symfony/ console/ Application.php
File
-
vendor/
symfony/ console/ Command/ SignalableCommandInterface.php, line 19
Namespace
Symfony\Component\Console\CommandView source
interface SignalableCommandInterface {
/**
* Returns the list of signals to subscribe.
*/
public function getSubscribedSignals() : array;
/**
* The method will be called when the application is signaled.
*
* @return int|false The exit code to return or false to continue the normal execution
*/
public function handleSignal(int $signal, int|false $previousExitCode = 0) : int|false;
}
Members
Title Sort descending | Modifiers | Object type | Summary | Overrides |
---|---|---|---|---|
SignalableCommandInterface::getSubscribedSignals | public | function | Returns the list of signals to subscribe. | 1 |
SignalableCommandInterface::handleSignal | public | function | The method will be called when the application is signaled. | 1 |