src/PackageSelection/PackageSelection.php
private function addRepositories(Pool $pool, array $repos)
    {
        foreach ($repos as $repo) {
            try {
                $pool->addRepository($repo);
            } catch (\Exception $exception) {
                if (!$this->skipErrors) {
                    throw $exception;
                }

                $this->output->writeln(sprintf("<error>Skipping Exception '%s'.</error>", $exception->getMessage()));
            }
        }
    }
private function addRepositories(Pool $pool, array $repos)
    {
        foreach ($repos as $repo) {
            try {
                $pool->addRepository($repo);
            } catch (\Exception $exception) {
                if (!$this->skipErrors) {
                    throw $exception;
                }

                $this->output->writeln(sprintf("<error>Skipping Exception '%s'.</error>", $exception->getMessage()));
            }
        }
    }
private function addRepositories ( Pool $ pool , array $ repos ) { foreach ( $ repos as $ repo ) { try { $ pool -> addRepository ( $ repo ) ; } catch ( \ Exception $ exception ) { if ( ! $ this -> skipErrors ) { throw $ exception ; } $ this -> output -> writeln ( sprintf ( "<error>Skipping Exception '%s'.</error>" , $ exception -> getMessage ( ) ) ) ; } } }
Add repositories to a pool

@param Pool  $pool
The Pool instance
@param RepositoryInterface[] $repos
Array of repositories
Add repositories to a pool