Description Event to handle application command signals. Syntax // ... use Symfony\Component\Console\Event\ConsoleSignalEvent; class SignalSubscriber implements EventSubscriberInterface { // ... public function handleSignal(ConsoleSignalEvent $event) { $signal = $event->getHandlingSignal(); // ... } public static function getSubscribedEvents() { return [ ConsoleEvents::SIGNAL => 'handleSignal', ]; } }