From ff4e2ec2191e93e90fb954b699135c561bd2ee42 Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Fri, 15 Apr 2016 14:04:44 +0100 Subject: [PATCH] Avoid lazy-loading composer-plugin-api --- src/Composer/Repository/ComposerRepository.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Composer/Repository/ComposerRepository.php b/src/Composer/Repository/ComposerRepository.php index 9b4ea1c75..f2d10d943 100644 --- a/src/Composer/Repository/ComposerRepository.php +++ b/src/Composer/Repository/ComposerRepository.php @@ -280,8 +280,8 @@ class ComposerRepository extends ArrayRepository implements ConfigurableReposito return $this->providers[$name]; } - // skip platform packages - if (preg_match(PlatformRepository::PLATFORM_PACKAGE_REGEX, $name) || '__root__' === $name) { + // skip platform packages, root package and composer-plugin-api + if (preg_match(PlatformRepository::PLATFORM_PACKAGE_REGEX, $name) || '__root__' === $name || 'composer-plugin-api' === $name) { return array(); }