From 6bc0f610d17e8909e1cda7ff61d90cd09bc377d3 Mon Sep 17 00:00:00 2001 From: jurgenhaas <juergen@paragon-es.de> Date: Wed, 9 Feb 2022 18:08:41 +0100 Subject: [PATCH] docker/l3d#109 Fix ahoy package search for composer 2.2 --- src/Handler.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Handler.php b/src/Handler.php index 0472c49..fdba9b2 100644 --- a/src/Handler.php +++ b/src/Handler.php @@ -42,8 +42,8 @@ class Handler extends BaseHandler { $rootDir = getcwd(); $installationManager = $this->composer->getInstallationManager(); - foreach ($this->composer->getRepositoryManager()->getLocalRepository()->search('lakedrops/*') as $pkg) { - $pluginRoot = $installationManager->getInstallPath($this->getPackage($pkg['name'])); + foreach ($this->composer->getRepositoryManager()->getLocalRepository()->getPackages() as $pkg) { + $pluginRoot = $installationManager->getInstallPath($pkg); if (file_exists($pluginRoot . '/.ahoy.l3d.yml')) { $pluginAhoy = Yaml::parseFile($pluginRoot . '/.ahoy.l3d.yml'); foreach ($pluginAhoy['commands'] as $command => $commands) { -- GitLab