Unfold aliased root packages, refs #1573
parent
faa419cc0e
commit
606f5839f1
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue