Added getter for CommandRegistry on CommandBus

This commit is contained in:
Chris 2024-07-28 16:02:31 +02:00
parent 35efaa1b0d
commit 585be681bd

View File

@ -26,6 +26,11 @@ class CommandBus implements CommandBusInterface
$this->servers = new SplObjectStorage(); $this->servers = new SplObjectStorage();
} }
public function getRegistry(): CommandRegistry
{
return $this->commandRegistry;
}
public function addServer(ServerInterface $server): void public function addServer(ServerInterface $server): void
{ {
$this->servers->attach($server); $this->servers->attach($server);