diff --git a/src/CommandBus.php b/src/CommandBus.php index 93d7ab8..f85dc77 100644 --- a/src/CommandBus.php +++ b/src/CommandBus.php @@ -26,6 +26,11 @@ class CommandBus implements CommandBusInterface $this->servers = new SplObjectStorage(); } + public function getRegistry(): CommandRegistry + { + return $this->commandRegistry; + } + public function addServer(ServerInterface $server): void { $this->servers->attach($server);