浏览代码

Fix missing var ref, refs #5117

Jordi Boggiano 9 年之前
父节点
当前提交
9af645ef50
共有 2 个文件被更改,包括 4 次插入2 次删除
  1. 3 1
      src/Composer/Installer/PearBinaryInstaller.php
  2. 1 1
      src/Composer/Installer/PearInstaller.php

+ 3 - 1
src/Composer/Installer/PearBinaryInstaller.php

@@ -27,6 +27,7 @@ use Composer\Util\Silencer;
 class PearBinaryInstaller extends BinaryInstaller
 {
     private $installer;
+    private $vendorDir;
 
     /**
      * @param IOInterface $io
@@ -34,10 +35,11 @@ class PearBinaryInstaller extends BinaryInstaller
      * @param string $binCompat
      * @param Filesystem $filesystem
      */
-    public function __construct(IOInterface $io, $binDir, $binCompat, Filesystem $filesystem, PearInstaller $installer)
+    public function __construct(IOInterface $io, $binDir, $vendorDir, $binCompat, Filesystem $filesystem, PearInstaller $installer)
     {
         parent::__construct($io, $binDir, $binCompat, $filesystem);
         $this->installer = $installer;
+        $this->vendorDir = $vendorDir;
     }
 
     protected function getBinaries(PackageInterface $package)

+ 1 - 1
src/Composer/Installer/PearInstaller.php

@@ -39,7 +39,7 @@ class PearInstaller extends LibraryInstaller
     public function __construct(IOInterface $io, Composer $composer, $type = 'pear-library')
     {
         $filesystem = new Filesystem();
-        $binaryInstaller = new PearBinaryInstaller($io, rtrim($composer->getConfig()->get('bin-dir'), '/'), $composer->getConfig()->get('bin-compat'), $filesystem, $this);
+        $binaryInstaller = new PearBinaryInstaller($io, rtrim($composer->getConfig()->get('bin-dir'), '/'), rtrim($composer->getConfig()->get('vendor-dir'), '/'), $composer->getConfig()->get('bin-compat'), $filesystem, $this);
 
         parent::__construct($io, $composer, $type, $filesystem, $binaryInstaller);
     }