Security update for Core, with self-updated composer
[yaffs-website] / vendor / symfony / event-dispatcher / EventDispatcherInterface.php
index abe8d2895ebc353bfc25f1edef5ef26fdb46a771..08ebf3400e98f1a27a05d5c344df2068abc088bc 100644 (file)
@@ -77,6 +77,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.
      *