From 606f5839f1c4be9ab3431d818c5fbd0552b98a79 Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Sun, 28 Apr 2013 13:28:13 +0200 Subject: [PATCH] Unfold aliased root packages, refs #1573 --- src/Composer/Package/Loader/RootPackageLoader.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Composer/Package/Loader/RootPackageLoader.php b/src/Composer/Package/Loader/RootPackageLoader.php index c47d715a0..2e603871d 100644 --- a/src/Composer/Package/Loader/RootPackageLoader.php +++ b/src/Composer/Package/Loader/RootPackageLoader.php @@ -13,6 +13,7 @@ namespace Composer\Package\Loader; use Composer\Package\BasePackage; +use Composer\Package\AliasPackage; use Composer\Config; use Composer\Factory; use Composer\Package\Version\VersionParser; @@ -66,6 +67,10 @@ class RootPackageLoader extends ArrayLoader $package = parent::load($config, $class); + if ($package instanceof AliasPackage) { + $package = $package->getAliasOf(); + } + $aliases = array(); $stabilityFlags = array(); $references = array();