Skip to content

Commit

Permalink
Fix install in Roundcubemail as root package
Browse files Browse the repository at this point in the history
  • Loading branch information
mvorisek committed Apr 10, 2024
1 parent 04ae6b2 commit e33f5d4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/ExtensionInstaller.php
Original file line number Diff line number Diff line change
Expand Up @@ -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', '*');
Expand Down

0 comments on commit e33f5d4

Please sign in to comment.