diff --git a/src/Composer/Package/Locker.php b/src/Composer/Package/Locker.php index 81843e8c1..db47ce35e 100644 --- a/src/Composer/Package/Locker.php +++ b/src/Composer/Package/Locker.php @@ -139,6 +139,7 @@ class Locker if ($package->isDev()) { $spec['source-reference'] = $package->getSourceReference(); } + // TODO discriminate between really installed as alias and installed as real package if ($package->getAlias()) { $spec['alias'] = $package->getAlias(); } diff --git a/src/Composer/Repository/FilesystemRepository.php b/src/Composer/Repository/FilesystemRepository.php index 7dc4e04a9..6e74e3fe6 100644 --- a/src/Composer/Repository/FilesystemRepository.php +++ b/src/Composer/Repository/FilesystemRepository.php @@ -56,6 +56,7 @@ class FilesystemRepository extends ArrayRepository implements WritableRepository $loader = new ArrayLoader(); foreach ($packages as $package) { $package = $loader->load($package); + // TODO discriminate between really installed as alias and installed as real package if ($package->getAlias()) { $this->addPackage($this->createAliasPackage($package)); } else {