comparison vendor/symfony/event-dispatcher/EventSubscriberInterface.php @ 17:129ea1e6d783

Update, including to Drupal core 8.6.10
author Chris Cannam
date Thu, 28 Feb 2019 13:21:36 +0000
parents 4c8ae668cc8c
children
comparison
equal deleted inserted replaced
16:c2387f117808 17:129ea1e6d783
10 */ 10 */
11 11
12 namespace Symfony\Component\EventDispatcher; 12 namespace Symfony\Component\EventDispatcher;
13 13
14 /** 14 /**
15 * An EventSubscriber knows himself what events he is interested in. 15 * An EventSubscriber knows itself what events it is interested in.
16 * If an EventSubscriber is added to an EventDispatcherInterface, the manager invokes 16 * If an EventSubscriber is added to an EventDispatcherInterface, the manager invokes
17 * {@link getSubscribedEvents} and registers the subscriber as a listener for all 17 * {@link getSubscribedEvents} and registers the subscriber as a listener for all
18 * returned events. 18 * returned events.
19 * 19 *
20 * @author Guilherme Blanco <guilhermeblanco@hotmail.com> 20 * @author Guilherme Blanco <guilhermeblanco@hotmail.com>
34 * * An array of arrays composed of the method names to call and respective 34 * * An array of arrays composed of the method names to call and respective
35 * priorities, or 0 if unset 35 * priorities, or 0 if unset
36 * 36 *
37 * For instance: 37 * For instance:
38 * 38 *
39 * * array('eventName' => 'methodName') 39 * * ['eventName' => 'methodName']
40 * * array('eventName' => array('methodName', $priority)) 40 * * ['eventName' => ['methodName', $priority]]
41 * * array('eventName' => array(array('methodName1', $priority), array('methodName2'))) 41 * * ['eventName' => [['methodName1', $priority], ['methodName2']]]
42 * 42 *
43 * @return array The event names to listen to 43 * @return array The event names to listen to
44 */ 44 */
45 public static function getSubscribedEvents(); 45 public static function getSubscribedEvents();
46 } 46 }