/**
  * @param Table               $table
  * @param CommandBusInterface $bus
  */
 protected function addRowsToTable(Table $table, $bus)
 {
     $handlers = $bus->getRegisteredCommandHandlers();
     foreach ($handlers as $commandName => $commandHandler) {
         $table->addRow(array($commandName, get_class($commandHandler)));
     }
 }
Пример #2
0
 /**
  * @return CommandHandlerInterface[]
  */
 public function getRegisteredCommandHandlers()
 {
     return $this->commandBus->getRegisteredCommandHandlers();
 }