Make CommandBus use CommandResolverInterface
* Add CommandResolverInterface to resolve commands. * Replace single CommandRegistry with CommandResolverInterface[] in CommandBus. * Make CommandRegistry implement CommandResolverInterface.
This commit is contained in:
1 parent
585be681bd
commit
07f8ae467c
4 files changed
+95
-9
No files matched your search
@@ -8,7 +8,7 @@ use Evenement\EventEmitterTrait;
|
||||
* A collection of commands that can be executed via CommandBusInterface
|
||||
*
|
||||
*/
|
||||
class CommandRegistry implements EventEmitterInterface
|
||||
class CommandRegistry implements CommandResolverInterface, EventEmitterInterface
|
||||
{
|
||||
use EventEmitterTrait;
|
||||
|
||||
|
||||
Reference in new issue
Block a user