1
0
Fork 0

Avoid loading plugins that have had their code wiped from filesystem, fixes #3115, closes #3538

pull/3538/merge
Jordi Boggiano 2014-12-13 14:54:34 +00:00
parent bef89604e2
commit cc4223e6f9
1 changed files with 3 additions and 3 deletions

View File

@ -284,13 +284,13 @@ class Factory
$pm = $this->createPluginManager($composer, $io, $globalRepository); $pm = $this->createPluginManager($composer, $io, $globalRepository);
$composer->setPluginManager($pm); $composer->setPluginManager($pm);
// purge packages if they have been deleted on the filesystem
$this->purgePackages($rm, $im);
if (!$disablePlugins) { if (!$disablePlugins) {
$pm->loadInstalledPlugins(); $pm->loadInstalledPlugins();
} }
// purge packages if they have been deleted on the filesystem
$this->purgePackages($rm, $im);
// init locker if possible // init locker if possible
if (isset($composerFile)) { if (isset($composerFile)) {
$lockFile = "json" === pathinfo($composerFile, PATHINFO_EXTENSION) $lockFile = "json" === pathinfo($composerFile, PATHINFO_EXTENSION)