Ensure vendor dir is initialized before generating the install path of a package
parent
94791aba73
commit
e953b4c891
|
@ -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 : '');
|
||||
|
|
Loading…
Reference in New Issue