* the event is the name of the method that is
* invoked on listeners.
* @param Event $event The event to pass to the event handlers/listeners
- * If not supplied, an empty Event instance is created.
+ * If not supplied, an empty Event instance is created
*
* @return Event
*/
*
* The subscriber is asked for all the events he is
* interested in and added as a listener for these events.
- *
- * @param EventSubscriberInterface $subscriber The subscriber
*/
public function addSubscriber(EventSubscriberInterface $subscriber);
*/
public function removeListener($eventName, $listener);
- /**
- * Removes an event subscriber.
- *
- * @param EventSubscriberInterface $subscriber The subscriber
- */
public function removeSubscriber(EventSubscriberInterface $subscriber);
/**
*/
public function getListeners($eventName = null);
+ /**
+ * 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
+ */
+ public function getListenerPriority($eventName, $listener);
+
/**
* Checks whether an event has any registered listeners.
*