protected function execute(InputInterface $input, OutputInterface $output) { $bot = new Bot($output, self::$config->get('service.name')); if (!$output->isDecorated()) { $bot->render(); return; } // Stay positive: return code 0 when the user quits. if (function_exists('pcntl_signal')) { declare (ticks=1); pcntl_signal(SIGINT, function () { echo "\n"; exit; }); } while (true) { $bot->render(); } }