1
0
Fork 0

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

pull/808/head
Jordi Boggiano 2012-06-17 18:16:15 +02:00
parent 94791aba73
commit e953b4c891
1 changed files with 1 additions and 0 deletions

View File

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