1
0
Fork 0

Skip aliases packages when looking for plugins.

pull/2508/head
Beau Simensen 2013-12-15 23:14:58 -06:00
parent 80499bb024
commit 9ca884944c
1 changed files with 4 additions and 0 deletions

View File

@ -18,6 +18,7 @@ use Composer\IO\IOInterface;
use Composer\Package\Package;
use Composer\Package\Version\VersionParser;
use Composer\Repository\RepositoryInterface;
use Composer\Package\AliasPackage;
use Composer\Package\PackageInterface;
use Composer\Package\Link;
use Composer\Package\LinkConstraint\VersionConstraint;
@ -95,6 +96,9 @@ class PluginManager
protected function loadRepository(RepositoryInterface $repo)
{
foreach ($repo->getPackages() as $package) {
if ($package instanceof AliasPackage) {
continue;
}
if ('composer-plugin' === $package->getType()) {
$requiresComposer = null;
foreach ($package->getRequires() as $link) {