/**
  * @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)));
     }
 }
 /**
  * @return CommandHandlerInterface[]
  */
 public function getRegisteredCommandHandlers()
 {
     return $this->commandBus->getRegisteredCommandHandlers();
 }