diff --git a/.ahoy.yml b/.ahoy.l3d.yml similarity index 100% rename from .ahoy.yml rename to .ahoy.l3d.yml diff --git a/.gitignore b/.gitignore index b2987a3551cba33004736aabb6f57209bf4ae2af..80a81fbdb0d1ee7f93292d028c4a52676e504bf1 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,5 @@ /vendor/ /.env /composer.lock +/.ahoy.l3d +/.ahoy.yml diff --git a/README.md b/README.md index 524d45acd0c54612b41656a7d2b118755f7fa81e..a262dec5527bf0c7b0cd91dfb951f6581577a3f2 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ It currently scans all composer packages with the pattern `lakedrops/*` and coll ## Prepare a LakeDrops plugin for Ahoy -When your comploser plugin should support this Ahoy framework, simply create a file called `.ahoy.yml` in the root of your plugin with content similar to this: +When your comploser plugin should support this Ahoy framework, simply create a file called `.ahoy.l3d.yml` in the root of your plugin with content similar to this: ```yaml ahoyapi: v2 diff --git a/src/Handler.php b/src/Handler.php index 033fd79dfebd111849d49b54e617f5b6ba08beb7..741b8a6ebf628c3150a39dff7e6c90e93ef7b7ed 100644 --- a/src/Handler.php +++ b/src/Handler.php @@ -3,7 +3,6 @@ namespace LakeDrops\Ahoy; use LakeDrops\Component\Composer\BaseHandler; -use LakeDrops\Component\Composer\Utils; use Symfony\Component\Yaml\Yaml; /** @@ -23,7 +22,7 @@ class Handler extends BaseHandler { /** * Update ahoy scripts of all LakeDrops plugins. */ - public function updateScripts() { + public function updateScripts(): void { $this->init(); // We only do the fancy stuff for developers. @@ -44,8 +43,8 @@ class Handler extends BaseHandler { $installationManager = $this->composer->getInstallationManager(); foreach ($this->composer->getRepositoryManager()->getLocalRepository()->search('lakedrops/*') as $pkg) { $pluginRoot = $installationManager->getInstallPath($this->getPackage($pkg['name'])); - if (file_exists($pluginRoot . '/.ahoy.yml')) { - $pluginAhoy = Yaml::parseFile($pluginRoot . '/.ahoy.yml'); + if (file_exists($pluginRoot . '/.ahoy.l3d.yml')) { + $pluginAhoy = Yaml::parseFile($pluginRoot . '/.ahoy.l3d.yml'); foreach ($pluginAhoy['commands'] as $command => $commands) { $ahoy['commands'][$command] = $commands; if (isset($commands['imports']) && is_array($commands['imports'])) {