From e953b4c89103bbe8a156be917da953744086310e Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Sun, 17 Jun 2012 18:16:15 +0200 Subject: [PATCH] Ensure vendor dir is initialized before generating the install path of a package --- src/Composer/Installer/LibraryInstaller.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Composer/Installer/LibraryInstaller.php b/src/Composer/Installer/LibraryInstaller.php index 817f91c22..cf5805c38 100644 --- a/src/Composer/Installer/LibraryInstaller.php +++ b/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 : '');