1
0
Fork 0
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:
Jordi Boggiano 2012-02-23 23:21:33 +01:00
parent c0b18bddb9
commit 1228c04984
11 changed files with 154 additions and 21 deletions

View file

@ -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.
*