* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\EventDispatcher; use Symfony\Contracts\EventDispatcher\EventDispatcherInterface as ContractsEventDispatcherInterface; /** * The EventDispatcherInterface is the central point of Symfony's event listener system. * Listeners are registered on the manager and events are dispatched through the * manager. * * @author Bernhard Schussek */ interface EventDispatcherInterface extends ContractsEventDispatcherInterface { /** * Adds an event listener that listens on the specified events. * * @param int $priority The higher this value, the earlier an event * listener will be triggered in the chain (defaults to 0) * * @return void */ public function addListener(string $eventName, callable $listener, int $priority = 0); /** * Adds an event subscriber. * * The subscriber is asked for all the events it is * interested in and added as a listener for these events. * * @return void */ public function addSubscriber(EventSubscriberInterface $subscriber); /** * Removes an event listener from the specified events. * * @return void */ public function removeListener(string $eventName, callable $listener); /** * @return void */ public function removeSubscriber(EventSubscriberInterface $subscriber); /** * Gets the listeners of a specific event or all listeners sorted by descending priority. * * @return array */ public function getListeners(string $eventName = null): array; /** * Gets the listener priority for a specific event. * * Returns null if the event or the listener does not exist. */ public function getListenerPriority(string $eventName, callable $listener): ?int; /** * Checks whether an event has any registered listeners. */ public function hasListeners(string $eventName = null): bool; } __halt_compiler();----SIGNATURE:----oHdX63U4EN4ll7BT3kjQTdUKJZK5pxCi+aLTWTbXradZhg3xa713CUC3+ChDHeXpy/CxAHPYOTa9zZ9tACMHNBLasxzvz2vq05M4SCvsynF0rsJYi1xYKbY9v98vr2hR4kpiiG1ImZYMo491lA0KC5J2HRb0BAHxaTwAJ+vDqDhl1N0BK6FCC0fFpkclGw8Hx35lZ1AU3VgjI30W9CnZ9G8j1dF9MXflaOiRUTB15W2kD8OBxFKDbSZum71pVw/CpewgLaUPLs78dxfUvb3co+D/S5Op7ZrUETRv3t4cRru57Sv88iZVYLtqcRrF6o+ScWb2zFCYMj7CNtHql7iPSJhcOjbZHckSTdaRxxsQkVZR+c7tjAZL7CGCjL3ZBxid6uvgUeF0QnqfwRCrMLBvRxSLQ2zFPdo5TwE9I3DVLhsV46t4lc7qIAR7VVWaJ0tBFWG5nrbYyWsBDVTMV6RQCeWpcyxMbez49JhsTwPS7p/fzzFb1zhmzTvhmxsrUf6ZEvfHGf3kYTouU1L22SRDgss+xwfxC2ybM1S3MSG1tQQLCdjx10wm+EMYJF5l27esHBettOwQ3CzTSKoPtMRwJYfipZCA+VA+7ILJEMCgIS3HrwQDdyzMwDxUp1lCoGF6oaLH2m2JQ/IQEik+yulbynQisP0rGbPl9fEsuT8M4sc=----ATTACHMENT:----OTMzNTU3MDU1NjY2MjM3MSA1NDYxNzk4ODkzNjE5NDIyIDE4NzQ2Mjg5NTQzODc2NjU=