diff --git a/README.md b/README.md index 6c9369e..08f3ceb 100644 --- a/README.md +++ b/README.md @@ -21,11 +21,12 @@ Console commands for [Apitte](https://github.com/apitte/core). ## Version -| State | Version | Branch | PHP | Composer | -|-------------|--------------|----------|----------|-------------------------------------------------| -| development | `^0.6.0` | `master` | `>= 7.1` | `minimum-stability: dev`, `prefer-stable: true` | -| stable | `^0.5.0` | `master` | `>= 7.1` | | -| stable | `^0.3.0` | `master` | `>= 5.6` | | +| State | Version | Branch | Nette | PHP | +|-------------|---------|----------|-------|---------| +| dev | `^0.7` | `master` | 3.0+ | `^7.2` | +| stable | `^0.6` | `master` | 3.0+ | `^7.2` | +| stable | `^0.5` | `master` | 2.4 | `>=7.1` | +| stable | `^0.3` | `master` | 2.4 | `>=5.6` | ## Maintainers diff --git a/composer.json b/composer.json index 0070518..db7fe2f 100644 --- a/composer.json +++ b/composer.json @@ -16,7 +16,6 @@ }, "require-dev": { "apitte/negotiation": "^0.6.0", - "nette/di": "~2.4.15", "ninjify/nunjuck": "^0.2.0", "ninjify/qa": "^0.8.0", "phpstan/extension-installer": "^1.0", @@ -25,10 +24,6 @@ "phpstan/phpstan-shim": "^0.11", "phpstan/phpstan-strict-rules": "^0.11" }, - "conflict": { - "apitte/negotiation": "<0.6.0", - "nette/di": "<2.4.15" - }, "autoload": { "psr-4": { "Apitte\\Console\\": "src" @@ -41,7 +36,7 @@ }, "extra": { "branch-alias": { - "dev-master": "0.6.x-dev" + "dev-master": "0.7.x-dev" } } } diff --git a/src/DI/ConsolePlugin.php b/src/DI/ConsolePlugin.php index 56f5364..58f3d41 100644 --- a/src/DI/ConsolePlugin.php +++ b/src/DI/ConsolePlugin.php @@ -3,18 +3,14 @@ namespace Apitte\Console\DI; use Apitte\Console\Command\RouteDumpCommand; -use Apitte\Core\DI\Plugin\AbstractPlugin; -use Apitte\Core\DI\Plugin\PluginCompiler; +use Apitte\Core\DI\Plugin\Plugin; -final class ConsolePlugin extends AbstractPlugin +final class ConsolePlugin extends Plugin { - public const PLUGIN_NAME = 'console'; - - public function __construct(PluginCompiler $compiler) + public static function getName(): string { - parent::__construct($compiler); - $this->name = self::PLUGIN_NAME; + return 'console'; } public function beforePluginCompile(): void