1
0
Fork 0

Unfold aliases in streamable repos since aliases are already loaded by the pool, refs #1346, fixes #1851

pull/1856/head
Jordi Boggiano 2013-05-02 17:43:45 +02:00
parent 326faf2b51
commit a7e88f7a80
1 changed files with 3 additions and 0 deletions

View File

@ -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;