src/PackageSelection/PackageSelection.php
private function getPackages(RepositoryInterface $repo)
    {
        $packages = [];

        if ($this->hasFilterForPackages()) {
            // apply package filter if defined
            foreach ($this->packagesFilter as $filter) {
                $packages += $repo->findPackages($filter);
            }
        } else {
            // process other repos directly
            $packages = $repo->getPackages();
        }

        return $packages;
    }
private function getPackages(RepositoryInterface $repo)
    {
        $packages = [];

        if ($this->hasFilterForPackages()) {
            // apply package filter if defined
            foreach ($this->packagesFilter as $filter) {
                $packages += $repo->findPackages($filter);
            }
        } else {
            // process other repos directly
            $packages = $repo->getPackages();
        }

        return $packages;
    }
private function getPackages ( RepositoryInterface $ repo ) { $ packages = [ ] ; if ( $ this -> hasFilterForPackages ( ) ) { // apply package filter if defined foreach ( $ this -> packagesFilter as $ filter ) { $ packages += $ repo -> findPackages ( $ filter ) ; } } else { // process other repos directly $ packages = $ repo -> getPackages ( ) ; } return $ packages ; }
Gets All or filtered Packages of a Repository.

@param RepositoryInterface $repo a Repository

@return PackageInterface[]
Gets All or filtered Packages of a Repository .