Ver Fonte

Revert constructor arguments to old order for custom installers

Nils Adermann há 12 anos atrás
pai
commit
a8c0170a91
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      src/Composer/Plugin/PluginManager.php

+ 1 - 1
src/Composer/Plugin/PluginManager.php

@@ -175,7 +175,7 @@ class PluginManager
             }
 
             if ($oldInstallerPlugin) {
-                $installer = new $class($this->composer, $this->io);
+                $installer = new $class($this->io, $this->composer);
                 $this->composer->getInstallationManager()->addInstaller($installer);
             } else {
                 $plugin = new $class();