From e33f5d4b1c5b7d2223c134c6c75eb880eeaa20dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20Vo=C5=99=C3=AD=C5=A1ek?= Date: Wed, 10 Apr 2024 13:31:18 +0200 Subject: [PATCH] Fix install in Roundcubemail as root package --- src/ExtensionInstaller.php | 7 +++++++ 1 file changed, 7 insertions(+) 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', '*');