Rename var
parent
1c39ad779b
commit
62bf84fc4f
|
@ -40,7 +40,7 @@ class Pool
|
||||||
const MATCH_REPLACE = 3;
|
const MATCH_REPLACE = 3;
|
||||||
|
|
||||||
protected $repositories = array();
|
protected $repositories = array();
|
||||||
protected $composerRepos = array();
|
protected $providerRepos = array();
|
||||||
protected $packages = array();
|
protected $packages = array();
|
||||||
protected $packageByName = array();
|
protected $packageByName = array();
|
||||||
protected $acceptableStabilities;
|
protected $acceptableStabilities;
|
||||||
|
@ -82,7 +82,7 @@ class Pool
|
||||||
$exempt = $repo instanceof PlatformRepository || $repo instanceof InstalledRepositoryInterface;
|
$exempt = $repo instanceof PlatformRepository || $repo instanceof InstalledRepositoryInterface;
|
||||||
|
|
||||||
if ($repo instanceof ComposerRepository && $repo->hasProviders()) {
|
if ($repo instanceof ComposerRepository && $repo->hasProviders()) {
|
||||||
$this->composerRepos[] = $repo;
|
$this->providerRepos[] = $repo;
|
||||||
$repo->setRootAliases($rootAliases);
|
$repo->setRootAliases($rootAliases);
|
||||||
$repo->resetPackageIds();
|
$repo->resetPackageIds();
|
||||||
} elseif ($repo instanceof StreamableRepositoryInterface) {
|
} elseif ($repo instanceof StreamableRepositoryInterface) {
|
||||||
|
@ -233,7 +233,7 @@ class Pool
|
||||||
{
|
{
|
||||||
$candidates = array();
|
$candidates = array();
|
||||||
|
|
||||||
foreach ($this->composerRepos as $repo) {
|
foreach ($this->providerRepos as $repo) {
|
||||||
foreach ($repo->whatProvides($this, $name) as $candidate) {
|
foreach ($repo->whatProvides($this, $name) as $candidate) {
|
||||||
$candidates[] = $candidate;
|
$candidates[] = $candidate;
|
||||||
if ($candidate->getId() < 1) {
|
if ($candidate->getId() < 1) {
|
||||||
|
|
Loading…
Reference in New Issue