Unfold aliases in streamable repos since aliases are already loaded by the pool, refs #1346, fixes #1851
parent
326faf2b51
commit
a7e88f7a80
|
@ -200,6 +200,9 @@ class ComposerRepository extends ArrayRepository implements StreamableRepository
|
|||
public function loadPackage(array $data)
|
||||
{
|
||||
$package = $this->createPackage($data['raw'], 'Composer\Package\Package');
|
||||
if ($package instanceof AliasPackage) {
|
||||
$package = $package->getAliasOf();
|
||||
}
|
||||
$package->setRepository($this);
|
||||
|
||||
return $package;
|
||||
|
|
Loading…
Reference in New Issue