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