Skip to content
Snippets Groups Projects
Commit 6bc0f610 authored by jurgenhaas's avatar jurgenhaas
Browse files

docker/l3d#109 Fix ahoy package search for composer 2.2

parent ccbb36b5
No related branches found
No related tags found
No related merge requests found
......@@ -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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment