$event = new Event();
}
- $event->setDispatcher($this);
- $event->setName($eventName);
-
if ($listeners = $this->getListeners($eventName)) {
$this->doDispatch($listeners, $eventName, $event);
}
}
/**
- * Gets the listener priority for a specific event.
- *
- * Returns null if the event or the listener does not exist.
- *
- * @param string $eventName The name of the event
- * @param callable $listener The listener
- *
- * @return int|null The event listener priority
+ * {@inheritdoc}
*/
public function getListenerPriority($eventName, $listener)
{