/** * Call the extensions * * @param EventInterface $event The event * * @return EventInterface */ public function dispatch(EventInterface $event) { $this->logger->debug(__METHOD__ . ": Dispatching " . $event->getName()); $name = $event->getName(); if (!key_exists($name, $this->loadedEvents)) { $this->logger->debug(__METHOD__ . ": - Loading extension listeners"); $this->loadExtensionListeners($name, $this->factory->getExtensions()); $this->loadedEvents[$name] = $name; } $result = parent::dispatch($event); $this->logger->debug(__METHOD__ . ": Done."); return $result; }