Skip to content
Snippets Groups Projects
Commit 795f4726 authored by jurgenhaas's avatar jurgenhaas
Browse files

Code cleanup and add missing dependency

parent eb91e460
No related branches found
No related tags found
No related merge requests found
.env
vendor
composer.lock
......@@ -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",
......
......@@ -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(),
];
}
}
......@@ -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.');
}
/**
......
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