diff --git a/src/ExtensionInstaller.php b/src/ExtensionInstaller.php index db13674..b7996f5 100644 --- a/src/ExtensionInstaller.php +++ b/src/ExtensionInstaller.php @@ -26,6 +26,13 @@ abstract class ExtensionInstaller extends LibraryInstaller protected function getRoundcubemailInstallPath(): string { + $rootPackage = $this->composer->getPackage(); + if ($rootPackage->getName() === 'roundcube/roundcubemail') { + $this->initializeVendorDir(); + + return dirname($this->vendorDir); + } + $roundcubemailPackage = $this->composer ->getRepositoryManager() ->findPackage('roundcube/roundcubemail', '*');