/**
* Runs the current command.
*
* If an event dispatcher has been attached to the application,
* events are also dispatched during the life-cycle of the command.
*
* @return int 0 if everything went fine, or an error code
*/
protected function doRunCommand(Command
$command, InputInterface
$input, OutputInterface
$output) { foreach ($command->
getHelperSet() as $helper) { if ($helper instanceof InputAwareInterface
) { $helper->
setInput($input);
} } $commandSignals =
$command instanceof SignalableCommandInterface ?
$command->
getSubscribedSignals() :
[];
if ($commandSignals ||
$this->dispatcher &&
$this->signalsToDispatchEvent
) { if (!
$this->signalRegistry
) { throw new RuntimeException('Unable to subscribe to signal events. Make sure that the "pcntl" extension is installed and that "pcntl_*" functions are not disabled by your php.ini\'s "disable_functions" directive.'
);
}