Browse Source

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

Jordi Boggiano 12 years ago
parent
commit
e953b4c891
1 changed files with 1 additions and 0 deletions
  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 : '');