Default installers are available in the factory for a plugin manager
parent
20a18dcb60
commit
af53ab94ad
|
@ -253,13 +253,13 @@ class Factory
|
||||||
$generator = new AutoloadGenerator($dispatcher);
|
$generator = new AutoloadGenerator($dispatcher);
|
||||||
$composer->setAutoloadGenerator($generator);
|
$composer->setAutoloadGenerator($generator);
|
||||||
|
|
||||||
|
// add installers to the manager
|
||||||
|
$this->createDefaultInstallers($im, $composer, $io);
|
||||||
|
|
||||||
$globalRepository = $this->createGlobalRepository($config, $vendorDir);
|
$globalRepository = $this->createGlobalRepository($config, $vendorDir);
|
||||||
$pm = $this->createPluginManager($composer, $io, $globalRepository);
|
$pm = $this->createPluginManager($composer, $io, $globalRepository);
|
||||||
$composer->setPluginManager($pm);
|
$composer->setPluginManager($pm);
|
||||||
|
|
||||||
// add installers to the manager
|
|
||||||
$this->createDefaultInstallers($im, $composer, $io);
|
|
||||||
|
|
||||||
if (!$disablePlugins) {
|
if (!$disablePlugins) {
|
||||||
$pm->loadInstalledPlugins();
|
$pm->loadInstalledPlugins();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue