Edit File by line
/home/barbar84/www/wp-conte.../plugins/worker/src/Symfony/EventDis...
File: EventDispatcherInterface.php
<?php
[0] Fix | Delete
[1] Fix | Delete
/*
[2] Fix | Delete
* This file is part of the Symfony package.
[3] Fix | Delete
*
[4] Fix | Delete
* (c) Fabien Potencier <fabien@symfony.com>
[5] Fix | Delete
*
[6] Fix | Delete
* For the full copyright and license information, please view the LICENSE
[7] Fix | Delete
* file that was distributed with this source code.
[8] Fix | Delete
*/
[9] Fix | Delete
[10] Fix | Delete
/**
[11] Fix | Delete
* The EventDispatcherInterface is the central point of Symfony's event listener system.
[12] Fix | Delete
* Listeners are registered on the manager and events are dispatched through the
[13] Fix | Delete
* manager.
[14] Fix | Delete
*
[15] Fix | Delete
* @author Bernhard Schussek <bschussek@gmail.com>
[16] Fix | Delete
*
[17] Fix | Delete
* @api
[18] Fix | Delete
*/
[19] Fix | Delete
interface Symfony_EventDispatcher_EventDispatcherInterface
[20] Fix | Delete
{
[21] Fix | Delete
/**
[22] Fix | Delete
* Dispatches an event to all registered listeners.
[23] Fix | Delete
*
[24] Fix | Delete
* @param string $eventName The name of the event to dispatch. The name of
[25] Fix | Delete
* the event is the name of the method that is
[26] Fix | Delete
* invoked on listeners.
[27] Fix | Delete
* @param Symfony_EventDispatcher_Event $event The event to pass to the event handlers/listeners.
[28] Fix | Delete
* If not supplied, an empty Event instance is created.
[29] Fix | Delete
*
[30] Fix | Delete
* @return Symfony_EventDispatcher_Event
[31] Fix | Delete
*
[32] Fix | Delete
* @api
[33] Fix | Delete
*/
[34] Fix | Delete
public function dispatch($eventName, Symfony_EventDispatcher_Event $event = null);
[35] Fix | Delete
[36] Fix | Delete
/**
[37] Fix | Delete
* Adds an event listener that listens on the specified events.
[38] Fix | Delete
*
[39] Fix | Delete
* @param string $eventName The event to listen on
[40] Fix | Delete
* @param callable $listener The listener
[41] Fix | Delete
* @param int $priority The higher this value, the earlier an event
[42] Fix | Delete
* listener will be triggered in the chain (defaults to 0)
[43] Fix | Delete
*
[44] Fix | Delete
* @api
[45] Fix | Delete
*/
[46] Fix | Delete
public function addListener($eventName, $listener, $priority = 0);
[47] Fix | Delete
[48] Fix | Delete
/**
[49] Fix | Delete
* Adds an event subscriber.
[50] Fix | Delete
*
[51] Fix | Delete
* The subscriber is asked for all the events he is
[52] Fix | Delete
* interested in and added as a listener for these events.
[53] Fix | Delete
*
[54] Fix | Delete
* @param Symfony_EventDispatcher_EventSubscriberInterface $subscriber The subscriber.
[55] Fix | Delete
*
[56] Fix | Delete
* @api
[57] Fix | Delete
*/
[58] Fix | Delete
public function addSubscriber(Symfony_EventDispatcher_EventSubscriberInterface $subscriber);
[59] Fix | Delete
[60] Fix | Delete
/**
[61] Fix | Delete
* Removes an event listener from the specified events.
[62] Fix | Delete
*
[63] Fix | Delete
* @param string $eventName The event to remove a listener from
[64] Fix | Delete
* @param callable $listener The listener to remove
[65] Fix | Delete
*/
[66] Fix | Delete
public function removeListener($eventName, $listener);
[67] Fix | Delete
[68] Fix | Delete
/**
[69] Fix | Delete
* Removes an event subscriber.
[70] Fix | Delete
*
[71] Fix | Delete
* @param Symfony_EventDispatcher_EventSubscriberInterface $subscriber The subscriber
[72] Fix | Delete
*/
[73] Fix | Delete
public function removeSubscriber(Symfony_EventDispatcher_EventSubscriberInterface $subscriber);
[74] Fix | Delete
[75] Fix | Delete
/**
[76] Fix | Delete
* Gets the listeners of a specific event or all listeners.
[77] Fix | Delete
*
[78] Fix | Delete
* @param string $eventName The name of the event
[79] Fix | Delete
*
[80] Fix | Delete
* @return array The event listeners for the specified event, or all event listeners by event name
[81] Fix | Delete
*/
[82] Fix | Delete
public function getListeners($eventName = null);
[83] Fix | Delete
[84] Fix | Delete
/**
[85] Fix | Delete
* Checks whether an event has any registered listeners.
[86] Fix | Delete
*
[87] Fix | Delete
* @param string $eventName The name of the event
[88] Fix | Delete
*
[89] Fix | Delete
* @return bool true if the specified event has any listeners, false otherwise
[90] Fix | Delete
*/
[91] Fix | Delete
public function hasListeners($eventName = null);
[92] Fix | Delete
}
[93] Fix | Delete
[94] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function