1
0
Fork 0

Merge pull request #2254 from hason/pm

Default installers are available in the factory for a plugin manager
pull/2255/head
Jordi Boggiano 2013-09-11 07:08:54 -07:00
commit a2ffda4f13
1 changed files with 3 additions and 3 deletions

View File

@ -253,13 +253,13 @@ class Factory
$generator = new AutoloadGenerator($dispatcher);
$composer->setAutoloadGenerator($generator);
// add installers to the manager
$this->createDefaultInstallers($im, $composer, $io);
$globalRepository = $this->createGlobalRepository($config, $vendorDir);
$pm = $this->createPluginManager($composer, $io, $globalRepository);
$composer->setPluginManager($pm);
// add installers to the manager
$this->createDefaultInstallers($im, $composer, $io);
if (!$disablePlugins) {
$pm->loadInstalledPlugins();
}