|
|
@ -283,11 +283,6 @@ class Factory
|
|
|
|
// add installers to the manager (must happen after download manager is created since they read it out of $composer)
|
|
|
|
// add installers to the manager (must happen after download manager is created since they read it out of $composer)
|
|
|
|
$this->createDefaultInstallers($im, $composer, $io);
|
|
|
|
$this->createDefaultInstallers($im, $composer, $io);
|
|
|
|
|
|
|
|
|
|
|
|
// purge packages if they have been deleted on the filesystem
|
|
|
|
|
|
|
|
if ($rm->getLocalRepository()) {
|
|
|
|
|
|
|
|
$this->purgePackages($rm->getLocalRepository(), $im);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if ($fullLoad) {
|
|
|
|
if ($fullLoad) {
|
|
|
|
$globalComposer = $this->createGlobalComposer($io, $config, $disablePlugins);
|
|
|
|
$globalComposer = $this->createGlobalComposer($io, $config, $disablePlugins);
|
|
|
|
$pm = $this->createPluginManager($io, $composer, $globalComposer);
|
|
|
|
$pm = $this->createPluginManager($io, $composer, $globalComposer);
|
|
|
@ -296,6 +291,12 @@ class Factory
|
|
|
|
if (!$disablePlugins) {
|
|
|
|
if (!$disablePlugins) {
|
|
|
|
$pm->loadInstalledPlugins();
|
|
|
|
$pm->loadInstalledPlugins();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// once we have plugins and custom installers we can
|
|
|
|
|
|
|
|
// purge packages from local repos if they have been deleted on the filesystem
|
|
|
|
|
|
|
|
if ($rm->getLocalRepository()) {
|
|
|
|
|
|
|
|
$this->purgePackages($rm->getLocalRepository(), $im);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// init locker if possible
|
|
|
|
// init locker if possible
|
|
|
|