Platformsh\Cli\Command\BotCommand::execute PHP Метод

execute() защищенный Метод

protected execute ( Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output )
$input Symfony\Component\Console\Input\InputInterface
$output Symfony\Component\Console\Output\OutputInterface
    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();
        }
    }