1
0
Fork 0

Load root aliases for providers by package name and not by provider name, fixes #3043

pull/3051/head
Jordi Boggiano 2014-06-09 19:36:06 +02:00
parent d97e00643f
commit d036b2390e
1 changed files with 4 additions and 4 deletions

View File

@ -418,10 +418,10 @@ class ComposerRepository extends ArrayRepository implements StreamableRepository
// handle root package aliases // handle root package aliases
unset($rootAliasData); unset($rootAliasData);
if (isset($this->rootAliases[$name][$package->getVersion()])) { if (isset($this->rootAliases[$package->getName()][$package->getVersion()])) {
$rootAliasData = $this->rootAliases[$name][$package->getVersion()]; $rootAliasData = $this->rootAliases[$package->getName()][$package->getVersion()];
} elseif ($package instanceof AliasPackage && isset($this->rootAliases[$name][$package->getAliasOf()->getVersion()])) { } elseif ($package instanceof AliasPackage && isset($this->rootAliases[$package->getName()][$package->getAliasOf()->getVersion()])) {
$rootAliasData = $this->rootAliases[$name][$package->getAliasOf()->getVersion()]; $rootAliasData = $this->rootAliases[$package->getName()][$package->getAliasOf()->getVersion()];
} }
if (isset($rootAliasData)) { if (isset($rootAliasData)) {