mirror of
https://github.com/composer/composer
synced 2025-05-11 01:22:54 +00:00
Add support for extra.branch-alias config to remap master on 2.1.x for example
This commit is contained in:
parent
c0b18bddb9
commit
1228c04984
11 changed files with 154 additions and 21 deletions
|
@ -12,6 +12,7 @@
|
|||
|
||||
namespace Composer\Repository;
|
||||
|
||||
use Composer\Package\AliasPackage;
|
||||
use Composer\Package\PackageInterface;
|
||||
use Composer\Package\Version\VersionParser;
|
||||
|
||||
|
@ -96,6 +97,11 @@ class ArrayRepository implements RepositoryInterface
|
|||
$this->packages[] = $package;
|
||||
}
|
||||
|
||||
protected function createAliasPackage(PackageInterface $package)
|
||||
{
|
||||
return new AliasPackage($package, $package->getAlias(), $package->getPrettyAlias());
|
||||
}
|
||||
|
||||
/**
|
||||
* Removes package from repository.
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue