diff --git a/src/Composer/Factory.php b/src/Composer/Factory.php index 4f7bfefd8..327709d3f 100644 --- a/src/Composer/Factory.php +++ b/src/Composer/Factory.php @@ -284,13 +284,13 @@ class Factory $pm = $this->createPluginManager($composer, $io, $globalRepository); $composer->setPluginManager($pm); + // purge packages if they have been deleted on the filesystem + $this->purgePackages($rm, $im); + if (!$disablePlugins) { $pm->loadInstalledPlugins(); } - // purge packages if they have been deleted on the filesystem - $this->purgePackages($rm, $im); - // init locker if possible if (isset($composerFile)) { $lockFile = "json" === pathinfo($composerFile, PATHINFO_EXTENSION)