|
@@ -38,15 +38,14 @@ interface EventDispatcherInterface
|
|
|
/**
|
|
|
* Adds an event listener that listens on the specified events.
|
|
|
*
|
|
|
- * @param string|array $eventNames The event(s) to listen on.
|
|
|
- * @param object $listener The listener object.
|
|
|
- * @param integer $priority The higher this value, the earlier an event
|
|
|
- * listener will be triggered in the chain.
|
|
|
- * Defaults to 0.
|
|
|
+ * @param string $eventName The event to listen on
|
|
|
+ * @param callable $listener The listener
|
|
|
+ * @param integer $priority The higher this value, the earlier an event
|
|
|
+ * listener will be triggered in the chain (defaults to 0)
|
|
|
*
|
|
|
* @api
|
|
|
*/
|
|
|
- function addListener($eventNames, $listener, $priority = 0);
|
|
|
+ function addListener($eventName, $listener, $priority = 0);
|
|
|
|
|
|
/**
|
|
|
* Adds an event subscriber. The subscriber is asked for all the events he is
|