PhpBrew\Command\UpdateCommand::execute PHP Method

execute() public method

public execute ( )
    public function execute()
    {
        $fetchTask = new FetchReleaseListTask($this->logger, $this->options);
        $releases = $fetchTask->fetch();
        foreach ($releases as $majorVersion => $versions) {
            if (strpos($majorVersion, '5.2') !== false && !$this->options->old) {
                continue;
            }
            $versionList = array_keys($versions);
            $this->logger->writeln($this->formatter->format("{$majorVersion}: ", 'yellow') . count($versionList) . ' releases');
        }
        $this->logger->info('===> Done');
    }