protectedfunctionexecute(InputInterface $input, OutputInterface $output): int { $this->eventDispatcher->addSubscriber(newStopWorkerOnMessageLimitListener(1));
$io = newSymfonyStyle($input, $output instanceof ConsoleOutputInterface ? $output->getErrorOutput() : $output); $io->comment('Quit this command with CONTROL-C.'); if(!$output->isVeryVerbose()){ $io->comment('Re-run the command with a -vv option to see logs about consumed messages.'); }