PluginProbe
ManageWP Worker / 4.9.25
ManageWP Worker v4.9.25
4.9.38 4.9.37 4.9.36 4.9.35 4.9.34 3.8.7 3.8.8 3.9.0 3.9.1 3.9.10 3.9.11 3.9.12 3.9.13 3.9.14 3.9.15 3.9.16 3.9.17 3.9.18 3.9.19 3.9.2 3.9.20 3.9.21 3.9.22 3.9.23 3.9.24 All 73 releases
worker / src / Symfony / EventDispatcher / EventSubscriberInterface.php

EventSubscriberInterface.php in ManageWP Worker 4.9.25, at src/Symfony/EventDispatcher/EventSubscriberInterface.php

49 lines 1.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 /*
4 * This file is part of the Symfony package.
5 *
6 * (c) Fabien Potencier <fabien@symfony.com>
7 *
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
10 */
11
12 /**
13 * An EventSubscriber knows himself what events he is interested in.
14 * If an EventSubscriber is added to an EventDispatcherInterface, the manager invokes
15 * {@link getSubscribedEvents} and registers the subscriber as a listener for all
16 * returned events.
17 *
18 * @author Guilherme Blanco <guilhermeblanco@hotmail.com>
19 * @author Jonathan Wage <jonwage@gmail.com>
20 * @author Roman Borschel <roman@code-factory.org>
21 * @author Bernhard Schussek <bschussek@gmail.com>
22 *
23 * @api
24 */
25 interface Symfony_EventDispatcher_EventSubscriberInterface
26 {
27 /**
28 * Returns an array of event names this subscriber wants to listen to.
29 *
30 * The array keys are event names and the value can be:
31 *
32 * * The method name to call (priority defaults to 0)
33 * * An array composed of the method name to call and the priority
34 * * An array of arrays composed of the method names to call and respective
35 * priorities, or 0 if unset
36 *
37 * For instance:
38 *
39 * * array('eventName' => 'methodName')
40 * * array('eventName' => array('methodName', $priority))
41 * * array('eventName' => array(array('methodName1', $priority), array('methodName2'))
42 *
43 * @return array The event names to listen to
44 *
45 * @api
46 */
47 public static function getSubscribedEvents();
48 }
49