Skip to content

Commit 4914b5b

Browse files
committed
Add blunder as error handler
1 parent 25364ea commit 4914b5b

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

Unit.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
namespace MaplePHP\Unitary;
55

66
use Exception;
7+
use MaplePHP\Blunder\Handlers\CliHandler;
8+
use MaplePHP\Blunder\Run;
79
use MaplePHP\Prompts\Command;
810
use RecursiveDirectoryIterator;
911
use RecursiveIteratorIterator;
@@ -90,6 +92,9 @@ public function add(string $message, callable $callback): void
9092
*/
9193
public function execute(): void
9294
{
95+
$run = new Run(new CliHandler());
96+
$run->load();
97+
9398
if(!is_null($this->title) && (!$this->quite || count($this->error) > 0)) {
9499
$this->command->title("\n--------- $this->title ---------");
95100
}

composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
],
2525
"require": {
2626
"php": ">=8.0",
27+
"maplephp/blunder": "^1.0",
2728
"maplephp/dto": "^1.0",
2829
"maplephp/http": "^1.0",
2930
"maplephp/validate": "^1.0",

0 commit comments

Comments
 (0)