Skip to content

Commit b99dd24

Browse files
mabarMilan Felix Šulc
authored and
Milan Felix Šulc
committed
Nette 3
1 parent 675642b commit b99dd24

File tree

3 files changed

+11
-19
lines changed

3 files changed

+11
-19
lines changed

README.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,12 @@ Console commands for [Apitte](https://github.com/apitte/core).
2121

2222
## Version
2323

24-
| State | Version | Branch | PHP | Composer |
25-
|-------------|--------------|----------|----------|-------------------------------------------------|
26-
| development | `^0.6.0` | `master` | `>= 7.1` | `minimum-stability: dev`, `prefer-stable: true` |
27-
| stable | `^0.5.0` | `master` | `>= 7.1` | |
28-
| stable | `^0.3.0` | `master` | `>= 5.6` | |
24+
| State | Version | Branch | Nette | PHP |
25+
|-------------|---------|----------|-------|---------|
26+
| dev | `^0.7` | `master` | 3.0+ | `^7.2` |
27+
| stable | `^0.6` | `master` | 3.0+ | `^7.2` |
28+
| stable | `^0.5` | `master` | 2.4 | `>=7.1` |
29+
| stable | `^0.3` | `master` | 2.4 | `>=5.6` |
2930

3031
## Maintainers
3132

composer.json

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
},
1717
"require-dev": {
1818
"apitte/negotiation": "^0.6.0",
19-
"nette/di": "~2.4.15",
2019
"ninjify/nunjuck": "^0.2.0",
2120
"ninjify/qa": "^0.8.0",
2221
"phpstan/extension-installer": "^1.0",
@@ -25,10 +24,6 @@
2524
"phpstan/phpstan-shim": "^0.11",
2625
"phpstan/phpstan-strict-rules": "^0.11"
2726
},
28-
"conflict": {
29-
"apitte/negotiation": "<0.6.0",
30-
"nette/di": "<2.4.15"
31-
},
3227
"autoload": {
3328
"psr-4": {
3429
"Apitte\\Console\\": "src"
@@ -41,7 +36,7 @@
4136
},
4237
"extra": {
4338
"branch-alias": {
44-
"dev-master": "0.6.x-dev"
39+
"dev-master": "0.7.x-dev"
4540
}
4641
}
4742
}

src/DI/ConsolePlugin.php

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,14 @@
33
namespace Apitte\Console\DI;
44

55
use Apitte\Console\Command\RouteDumpCommand;
6-
use Apitte\Core\DI\Plugin\AbstractPlugin;
7-
use Apitte\Core\DI\Plugin\PluginCompiler;
6+
use Apitte\Core\DI\Plugin\Plugin;
87

9-
final class ConsolePlugin extends AbstractPlugin
8+
final class ConsolePlugin extends Plugin
109
{
1110

12-
public const PLUGIN_NAME = 'console';
13-
14-
public function __construct(PluginCompiler $compiler)
11+
public static function getName(): string
1512
{
16-
parent::__construct($compiler);
17-
$this->name = self::PLUGIN_NAME;
13+
return 'console';
1814
}
1915

2016
public function beforePluginCompile(): void

0 commit comments

Comments
 (0)