1
0
Fork 0

Rename var

pull/915/merge
Jordi Boggiano 2012-11-01 16:19:07 +01:00
parent 1c39ad779b
commit 62bf84fc4f
1 changed files with 3 additions and 3 deletions

View File

@ -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) {