From 585be681bddd2ed86d74674398bb0bfa028ff8a7 Mon Sep 17 00:00:00 2001 From: Christopher Vagnetoft Date: Sun, 28 Jul 2024 16:02:31 +0200 Subject: [PATCH] Added getter for CommandRegistry on CommandBus --- src/CommandBus.php | 5 +++++ 1 file changed, 5 insertions(+) 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);