ソースを参照

Ensure vendor dir is initialized before generating the install path of a package

Jordi Boggiano 12 年 前
コミット
e953b4c891
1 ファイル変更1 行追加0 行削除
  1. 1 0
      src/Composer/Installer/LibraryInstaller.php

+ 1 - 0
src/Composer/Installer/LibraryInstaller.php

@@ -140,6 +140,7 @@ class LibraryInstaller implements InstallerInterface
      */
     public function getInstallPath(PackageInterface $package)
     {
+        $this->initializeVendorDir();
         $targetDir = $package->getTargetDir();
 
         return ($this->vendorDir ? $this->vendorDir.'/' : '') . $package->getPrettyName() . ($targetDir ? '/'.$targetDir : '');