Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/updraftp.../vendor/symfony/event-di...
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
namespace Symfony\Component\EventDispatcher;
[11] Fix | Delete
[12] Fix | Delete
/**
[13] Fix | Delete
* The EventDispatcherInterface is the central point of Symfony's event listener system.
[14] Fix | Delete
* Listeners are registered on the manager and events are dispatched through the
[15] Fix | Delete
* manager.
[16] Fix | Delete
*
[17] Fix | Delete
* @author Bernhard Schussek <bschussek@gmail.com>
[18] Fix | Delete
*/
[19] Fix | Delete
interface 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 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 Event
[31] Fix | Delete
*/
[32] Fix | Delete
public function dispatch($eventName, Event $event = null);
[33] Fix | Delete
[34] Fix | Delete
/**
[35] Fix | Delete
* Adds an event listener that listens on the specified events.
[36] Fix | Delete
*
[37] Fix | Delete
* @param string $eventName The event to listen on
[38] Fix | Delete
* @param callable $listener The listener
[39] Fix | Delete
* @param int $priority The higher this value, the earlier an event
[40] Fix | Delete
* listener will be triggered in the chain (defaults to 0)
[41] Fix | Delete
*/
[42] Fix | Delete
public function addListener($eventName, $listener, $priority = 0);
[43] Fix | Delete
[44] Fix | Delete
/**
[45] Fix | Delete
* Adds an event subscriber.
[46] Fix | Delete
*
[47] Fix | Delete
* The subscriber is asked for all the events he is
[48] Fix | Delete
* interested in and added as a listener for these events.
[49] Fix | Delete
*/
[50] Fix | Delete
public function addSubscriber(EventSubscriberInterface $subscriber);
[51] Fix | Delete
[52] Fix | Delete
/**
[53] Fix | Delete
* Removes an event listener from the specified events.
[54] Fix | Delete
*
[55] Fix | Delete
* @param string $eventName The event to remove a listener from
[56] Fix | Delete
* @param callable $listener The listener to remove
[57] Fix | Delete
*/
[58] Fix | Delete
public function removeListener($eventName, $listener);
[59] Fix | Delete
[60] Fix | Delete
public function removeSubscriber(EventSubscriberInterface $subscriber);
[61] Fix | Delete
[62] Fix | Delete
/**
[63] Fix | Delete
* Gets the listeners of a specific event or all listeners sorted by descending priority.
[64] Fix | Delete
*
[65] Fix | Delete
* @param string $eventName The name of the event
[66] Fix | Delete
*
[67] Fix | Delete
* @return array The event listeners for the specified event, or all event listeners by event name
[68] Fix | Delete
*/
[69] Fix | Delete
public function getListeners($eventName = null);
[70] Fix | Delete
[71] Fix | Delete
/**
[72] Fix | Delete
* Checks whether an event has any registered listeners.
[73] Fix | Delete
*
[74] Fix | Delete
* @param string $eventName The name of the event
[75] Fix | Delete
*
[76] Fix | Delete
* @return bool true if the specified event has any listeners, false otherwise
[77] Fix | Delete
*/
[78] Fix | Delete
public function hasListeners($eventName = null);
[79] Fix | Delete
}
[80] Fix | Delete
[81] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function