src/PackageSelection/PackageSelection.php
private function getAllLinks($repos, $minimumStability, $verbose)
    {
        $links = [];

        foreach ($repos as $repo) {
            // collect links for composer repos with providers
            if ($repo instanceof ComposerRepository && $repo->hasProviders()) {
                foreach ($repo->getProviderNames() as $name) {
                    $links[] = new Link('__root__', $name, new EmptyConstraint(), 'requires', '*');
                }
            } else {
                $packages = $this->getPackages($repo);

                foreach ($packages as $package) {
                    // skip aliases
                    if ($package instanceof AliasPackage) {
                        continue;
                    }

                    if (BasePackage::$stabilities[$package->getStability()] > BasePackage::$stabilities[$minimumStability]) {
                        if ($verbose) {
                            $this->output->writeln('Skipped ' . $package->getPrettyName() . ' (' . $package->getStability() . ')');
                        }
                        continue;
                    }

                    $links[] = $package;
                }
            }
        }

        return $links;
    }
private function getAllLinks($repos, $minimumStability, $verbose)
    {
        $links = [];

        foreach ($repos as $repo) {
            // collect links for composer repos with providers
            if ($repo instanceof ComposerRepository && $repo->hasProviders()) {
                foreach ($repo->getProviderNames() as $name) {
                    $links[] = new Link('__root__', $name, new EmptyConstraint(), 'requires', '*');
                }
            } else {
                $packages = $this->getPackages($repo);

                foreach ($packages as $package) {
                    // skip aliases
                    if ($package instanceof AliasPackage) {
                        continue;
                    }

                    if (BasePackage::$stabilities[$package->getStability()] > BasePackage::$stabilities[$minimumStability]) {
                        if ($verbose) {
                            $this->output->writeln('Skipped ' . $package->getPrettyName() . ' (' . $package->getStability() . ')');
                        }
                        continue;
                    }

                    $links[] = $package;
                }
            }
        }

        return $links;
    }
private function getAllLinks ( $ repos , $ minimumStability , $ verbose ) { $ links = [ ] ; foreach ( $ repos as $ repo ) { // collect links for composer repos with providers if ( $ repo instanceof ComposerRepository && $ repo -> hasProviders ( ) ) { foreach ( $ repo -> getProviderNames ( ) as $ name ) { $ links [ ] = new Link ( '__root__' , $ name , new EmptyConstraint ( ) , 'requires' , '*' ) ; } } else { $ packages = $ this -> getPackages ( $ repo ) ; foreach ( $ packages as $ package ) { // skip aliases if ( $ package instanceof AliasPackage ) { continue ; } if ( BasePackage :: $ stabilities [ $ package -> getStability ( ) ] > BasePackage :: $ stabilities [ $ minimumStability ] ) { if ( $ verbose ) { $ this -> output -> writeln ( 'Skipped ' . $ package -> getPrettyName ( ) . ' (' . $ package -> getStability ( ) . ')' ) ; } continue ; } $ links [ ] = $ package ; } } } return $ links ; }
Gets all Links.

This method is called when 'require-all' is set to true.

@param array  $repos            List of all Repositories configured
@param string $minimumStability The minimum stability each package must have to be selected
@param bool   $verbose          Output info if true

@return Link[]|Package[]
Gets all Links .