Skip to content

Commit

Permalink
Nette 3
Browse files Browse the repository at this point in the history
  • Loading branch information
mabar authored and Milan Felix 艩ulc committed Jul 7, 2019
1 parent 675642b commit b99dd24
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 19 deletions.
11 changes: 6 additions & 5 deletions README.md
Expand Up @@ -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

Expand Down
7 changes: 1 addition & 6 deletions composer.json
Expand Up @@ -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",
Expand All @@ -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"
Expand All @@ -41,7 +36,7 @@
},
"extra": {
"branch-alias": {
"dev-master": "0.6.x-dev"
"dev-master": "0.7.x-dev"
}
}
}
12 changes: 4 additions & 8 deletions src/DI/ConsolePlugin.php
Expand Up @@ -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
Expand Down

0 comments on commit b99dd24

Please sign in to comment.