1
0
Fork 0
mirror of https://github.com/composer/composer synced 2025-05-11 09:32:55 +00:00

Remove persistence of alias data, make abstract branch aliasing and keep it in composer only

This commit is contained in:
Jordi Boggiano 2012-02-25 02:52:19 +01:00
parent 1bdab5c4c8
commit 0b7ee194c6
11 changed files with 115 additions and 44 deletions

View file

@ -95,6 +95,11 @@ class ArrayRepository implements RepositoryInterface
}
$package->setRepository($this);
$this->packages[] = $package;
// create alias package on the fly if needed (installed repos manage aliases themselves)
if ($package->getAlias() && !$this instanceof InstalledRepositoryInterface) {
$this->addPackage($this->createAliasPackage($package));
}
}
protected function createAliasPackage(PackageInterface $package)