/**
  * @param Table                    $table
  * @param object|EventBusInterface $bus
  */
 protected function addRowsToTable(Table $table, $bus)
 {
     $list = $bus->getRegisteredEventListeners();
     foreach ($list as $eventListenerCollection) {
         $this->addEventListenerCollectionRows($table, $eventListenerCollection);
     }
 }
예제 #2
0
 /**
  * Get the list of every EventListener defined in the EventBus.
  * This might be useful for debug
  *
  * @return EventListenerCollection[]
  */
 public function getRegisteredEventListeners()
 {
     return $this->eventBus->getRegisteredEventListeners();
 }