1
0
Fork 0

Unfold aliased root packages, refs #1573

pull/1840/merge
Jordi Boggiano 2013-04-28 13:28:13 +02:00
parent faa419cc0e
commit 606f5839f1
1 changed files with 5 additions and 0 deletions

View File

@ -13,6 +13,7 @@
namespace Composer\Package\Loader; namespace Composer\Package\Loader;
use Composer\Package\BasePackage; use Composer\Package\BasePackage;
use Composer\Package\AliasPackage;
use Composer\Config; use Composer\Config;
use Composer\Factory; use Composer\Factory;
use Composer\Package\Version\VersionParser; use Composer\Package\Version\VersionParser;
@ -66,6 +67,10 @@ class RootPackageLoader extends ArrayLoader
$package = parent::load($config, $class); $package = parent::load($config, $class);
if ($package instanceof AliasPackage) {
$package = $package->getAliasOf();
}
$aliases = array(); $aliases = array();
$stabilityFlags = array(); $stabilityFlags = array();
$references = array(); $references = array();