Mercurial > hg > isophonics-drupal-site
comparison vendor/symfony/event-dispatcher/EventDispatcherInterface.php @ 14:1fec387a4317
Update Drupal core to 8.5.2 via Composer
author | Chris Cannam |
---|---|
date | Mon, 23 Apr 2018 09:46:53 +0100 |
parents | 4c8ae668cc8c |
children | 129ea1e6d783 |
comparison
equal
deleted
inserted
replaced
13:5fb285c0d0e3 | 14:1fec387a4317 |
---|---|
25 * | 25 * |
26 * @param string $eventName The name of the event to dispatch. The name of | 26 * @param string $eventName The name of the event to dispatch. The name of |
27 * the event is the name of the method that is | 27 * the event is the name of the method that is |
28 * invoked on listeners. | 28 * invoked on listeners. |
29 * @param Event $event The event to pass to the event handlers/listeners | 29 * @param Event $event The event to pass to the event handlers/listeners |
30 * If not supplied, an empty Event instance is created. | 30 * If not supplied, an empty Event instance is created |
31 * | 31 * |
32 * @return Event | 32 * @return Event |
33 */ | 33 */ |
34 public function dispatch($eventName, Event $event = null); | 34 public function dispatch($eventName, Event $event = null); |
35 | 35 |
46 /** | 46 /** |
47 * Adds an event subscriber. | 47 * Adds an event subscriber. |
48 * | 48 * |
49 * The subscriber is asked for all the events he is | 49 * The subscriber is asked for all the events he is |
50 * interested in and added as a listener for these events. | 50 * interested in and added as a listener for these events. |
51 * | |
52 * @param EventSubscriberInterface $subscriber The subscriber | |
53 */ | 51 */ |
54 public function addSubscriber(EventSubscriberInterface $subscriber); | 52 public function addSubscriber(EventSubscriberInterface $subscriber); |
55 | 53 |
56 /** | 54 /** |
57 * Removes an event listener from the specified events. | 55 * Removes an event listener from the specified events. |
59 * @param string $eventName The event to remove a listener from | 57 * @param string $eventName The event to remove a listener from |
60 * @param callable $listener The listener to remove | 58 * @param callable $listener The listener to remove |
61 */ | 59 */ |
62 public function removeListener($eventName, $listener); | 60 public function removeListener($eventName, $listener); |
63 | 61 |
64 /** | |
65 * Removes an event subscriber. | |
66 * | |
67 * @param EventSubscriberInterface $subscriber The subscriber | |
68 */ | |
69 public function removeSubscriber(EventSubscriberInterface $subscriber); | 62 public function removeSubscriber(EventSubscriberInterface $subscriber); |
70 | 63 |
71 /** | 64 /** |
72 * Gets the listeners of a specific event or all listeners sorted by descending priority. | 65 * Gets the listeners of a specific event or all listeners sorted by descending priority. |
73 * | 66 * |