* * 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:----hVHAYucy9ad2zhmRZkLvX+5XuqGPwUYp03woB4XfesPGicOdWmdgahgbmsCzcjkuN2bqETg74EfmHeOOn/U5zhMY0udEVzDgmsqu8JTCgZvYNzuMD28YJJsnhb6zR49gQs0YFzx2L0KJEO/9RbHbcrGLrsMKhRq1XReBCnqm8WxmuFazZz2lcfyIEZ/LWRwbndwKSN4+xV05aFZe2OmzsQGgebpkn6sA8vBMbUVIaLa+ne2rBpu1XLr2FzBnJSh8vqY6C1f/Exo8SpU3Wp8Lh9bDPjzLcjuVd4haOyE2gMZp3TdPN9CKMt6jzeUHn1G0QQJ2dUXh2ea7Yz1MTRFyzdFIiYVdW/iUX8NraDbjkk7mXQyOKcWQD3iMSoK7JoKSgFG0pIrDO+xAtxCS29LMrHF0G4B4HZ2sjWAYi4JTDAZo5ZLNezT/NJ2p23kHcYAzz8pjpZkcg76tiy9oL2EVwID7tfUJyVHyIueD9PCSjc6a62txBvyPaTfNRXypgfRQkP2+ENUTSf1NQNLw8MXJ/ihJo2m0j+LfZCtjQ10Q/4blqgdk1GjsiiGR4Hjr1I82Ie1fGtt9h3E6gSOsaQMiBdP1kl/YeV2A+ENQdyigDGJx1eIp2EkYFjXIdZ84iI28ExhBBVxcxY6vpW2YuyZnfnuFhPxLJhBey5g8DfE3VI8=----ATTACHMENT:----NDgyNDIwMjM0MTQ4NDcxMCA3NDkxOTYxNzAwMTAyODA4IDU3MzI3NTg0ODMzMDY1MDM=