From ac0a579e383ac4c93e7dcfe3bb21a5ea20c5ab5e Mon Sep 17 00:00:00 2001 From: jurgenhaas <juergen@paragon-es.de> Date: Wed, 31 Oct 2018 16:17:20 +0100 Subject: [PATCH] Include ahoy commands from the project's root composer.json --- src/Handler.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Handler.php b/src/Handler.php index df4d726..c590a8d 100644 --- a/src/Handler.php +++ b/src/Handler.php @@ -72,6 +72,12 @@ class Handler { 'ahoyapi' => 'v2', 'commands' => [], ]; + + $settings = new Utils($this->composer); + foreach ($settings->getSubSubSection('extra', 'lakedrops', 'ahoy') as $command => $commands) { + $ahoy['commands'][$command] = $commands; + } + $installationManager = $this->composer->getInstallationManager(); foreach ($this->composer->getRepositoryManager()->getLocalRepository()->search('lakedrops/*') as $pkg) { $pluginRoot = $installationManager->getInstallPath($this->getPackage($pkg['name'])); -- GitLab