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:
parent
1bdab5c4c8
commit
0b7ee194c6
11 changed files with 115 additions and 44 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue