Skip to content

Commit

Permalink
Merge pull request #3 from minicli/fix-boot-method
Browse files Browse the repository at this point in the history
Fixing boot method and bootstrapping tests
  • Loading branch information
erikaheidi authored Jun 7, 2023
2 parents 5f95b71 + 5c76be8 commit d87601f
Show file tree
Hide file tree
Showing 6 changed files with 3,663 additions and 18 deletions.
5 changes: 3 additions & 2 deletions Command/Help/DefaultController.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,17 @@
namespace Command\Help;

use Minicli\App;
use Minicli\Command\CommandCall;
use Minicli\Command\CommandController;

class DefaultController extends CommandController
{
/** @var array */
protected $command_map = [];

public function boot(App $app): void
public function boot(App $app, CommandCall $input): void
{
parent::boot($app);
parent::boot($app, $input);
$this->command_map = $app->commandRegistry->getCommandMap();
}

Expand Down
11 changes: 9 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,16 @@
"minicli/minicli": "^4.0"
},
"require-dev": {
"laravel/pint": "^1.10"
"laravel/pint": "^1.10",
"pestphp/pest": "^2.6"
},
"scripts": {
"lint": ["pint"]
"lint": ["pint"],
"test": ["pest"]
},
"config": {
"allow-plugins": {
"pestphp/pest-plugin": true
}
}
}
Loading

0 comments on commit d87601f

Please sign in to comment.