Added getter for CommandRegistry on CommandBus
This commit is contained in:
parent
35efaa1b0d
commit
585be681bd
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user