summaryrefslogtreecommitdiff
path: root/vendor/symfony/event-dispatcher/EventDispatcherInterface.php
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/symfony/event-dispatcher/EventDispatcherInterface.php')
-rw-r--r--vendor/symfony/event-dispatcher/EventDispatcherInterface.php23
1 files changed, 14 insertions, 9 deletions
diff --git a/vendor/symfony/event-dispatcher/EventDispatcherInterface.php b/vendor/symfony/event-dispatcher/EventDispatcherInterface.php
index a9bdd2c8..d3d0cb8a 100644
--- a/vendor/symfony/event-dispatcher/EventDispatcherInterface.php
+++ b/vendor/symfony/event-dispatcher/EventDispatcherInterface.php
@@ -26,8 +26,8 @@ interface EventDispatcherInterface
* @param string $eventName The name of the event to dispatch. The name of
* 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.
+ * @param Event $event The event to pass to the event handlers/listeners
+ * If not supplied, an empty Event instance is created
*
* @return Event
*/
@@ -48,8 +48,6 @@ interface EventDispatcherInterface
*
* 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);
@@ -61,11 +59,6 @@ interface EventDispatcherInterface
*/
public function removeListener($eventName, $listener);
- /**
- * Removes an event subscriber.
- *
- * @param EventSubscriberInterface $subscriber The subscriber
- */
public function removeSubscriber(EventSubscriberInterface $subscriber);
/**
@@ -78,6 +71,18 @@ interface EventDispatcherInterface
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.
*
* @param string $eventName The name of the event