diff --git a/.gitignore b/.gitignore index 7579f74311d35aae05dd0f0a54537ea7a0034e89..277cddd8d09b9276ca0531b7057eaaa802a9b4e7 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ +.env vendor composer.lock diff --git a/composer.json b/composer.json index 80c0296e5955fbcb6b1e8a8ec125498f52827915..3439b8c08edd87e8007332bfaa034d744daa78e3 100644 --- a/composer.json +++ b/composer.json @@ -30,9 +30,10 @@ "source": "https://gitlab.lakedrops.com/composer/plugin/ahoy/tree/master" }, "require": { - "php": ">=7.0", + "php": ">=7.2", "composer-plugin-api": "^1.0.0", - "lakedrops/composer-json-utils": "^1.4.0" + "lakedrops/composer-json-utils": "^1.4.0", + "symfony/yaml": "^3.4||^4.4||^5.0" }, "require-dev": { "composer/composer": "^1.5.0", diff --git a/src/CommandProvider.php b/src/CommandProvider.php index 3c5309d0e94e5466a947e50d136e04181f0bb4dd..b2cf5a0631a6d8c51718d3ffc2a8d6df67265e07 100644 --- a/src/CommandProvider.php +++ b/src/CommandProvider.php @@ -3,18 +3,16 @@ namespace LakeDrops\Ahoy; use Composer\Plugin\Capability\CommandProvider as CommandProviderCapability; -use Composer\Command\BaseCommand; class CommandProvider implements CommandProviderCapability { /** - * Retrieves an array of commands - * - * @return BaseCommand[] + * {@inheritdoc} */ public function getCommands(): array { return [ new UpdateCommand(), ]; } + } diff --git a/src/UpdateCommand.php b/src/UpdateCommand.php index 8b763605913e3f3adbf4250bb6d631910c3d7e30..dfcb1c401521654d6da54b8fa94c326f386b118c 100644 --- a/src/UpdateCommand.php +++ b/src/UpdateCommand.php @@ -12,8 +12,10 @@ class UpdateCommand extends BaseCommand { * {@inheritdoc} */ protected function configure() { - $this->setName('lakedrops:ahoy'); - $this->setDescription('Scan LakeDrops plugins for ahoy scripts.'); + parent::configure(); + $this + ->setName('lakedrops:ahoy') + ->setDescription('Scan LakeDrops plugins for ahoy scripts.'); } /**