Skip to content

Commit

Permalink
Merge pull request #25 from Jeckel-Lab/feature/upgrade-exceptions
Browse files Browse the repository at this point in the history
Update to stable contract version
  • Loading branch information
jeckel committed Jun 15, 2020
2 parents 0539dc5 + ec2aea3 commit 32a29ca
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 39 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"php": "^7.2",
"psr/event-dispatcher": "^1.0",
"psr/container": "^1.0",
"jeckel-lab/contract": "0.1"
"jeckel-lab/contract": ">=0.1.2"
},
"require-dev": {
"phpunit/phpunit": "^8.4",
Expand Down
2 changes: 1 addition & 1 deletion src/CommandHandler/CommandHandlerAbstract.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@

namespace JeckelLab\CommandDispatcher\CommandHandler;

use JeckelLab\CommandDispatcher\Exception\InvalidCommandException;
use JeckelLab\Contract\Core\CommandDispatcher\Command\Command;
use JeckelLab\Contract\Core\CommandDispatcher\CommandHandler\CommandHandler;
use JeckelLab\Contract\Core\CommandDispatcher\CommandResponse\CommandResponse;
use JeckelLab\Contract\Core\CommandDispatcher\Exception\InvalidCommandException;

/**
* Class CommandHandlerAbstract
Expand Down
19 changes: 0 additions & 19 deletions src/Exception/CommandDispatcherException.php

This file was deleted.

17 changes: 0 additions & 17 deletions src/Exception/InvalidCommandException.php

This file was deleted.

3 changes: 2 additions & 1 deletion src/Resolver/HandlerNotFoundException.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,12 @@

namespace JeckelLab\CommandDispatcher\Resolver;

use RuntimeException;
use JeckelLab\Contract\Core\Exception\RuntimeException;

/**
* Class HandlerNotFoundException
* @package JeckelLab\CommandDispatcher\Resolver
* @psalm-immutable
*/
class HandlerNotFoundException extends RuntimeException
{
Expand Down

0 comments on commit 32a29ca

Please sign in to comment.