Platformsh\Cli\Command\Self\SelfUpdateCommand::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)
    {
        $manifestUrl = $input->getOption('manifest') ?: self::$config->get('application.manifest_url');
        $currentVersion = $input->getOption('current-version') ?: self::$config->get('application.version');
        $cliUpdater = new SelfUpdater($input, $output, self::$config, $this->getHelper('question'));
        $cliUpdater->setAllowMajor(!$input->getOption('no-major'));
        $cliUpdater->setAllowUnstable((bool) $input->getOption('unstable'));
        $cliUpdater->setTimeout($input->getOption('timeout'));
        $result = $cliUpdater->update($manifestUrl, $currentVersion);
        if ($result === false) {
            return 1;
        }
        // Phar cannot load more classes after the update has occurred. So to
        // avoid errors from classes loaded after this (e.g.
        // ConsoleTerminateEvent), we exit directly now.
        exit(0);
    }