Exception deprecated

interface Exception deprecated since version 2.7, to be removed in 3.0. Use ExceptionInterface instead. Base exception.

Exception

class Exception extends Exception Base ACL exception

Exception

class Exception extends RuntimeException Base exception for all configuration exceptions.

EventSubscriberInterface

interface EventSubscriberInterface An EventSubscriber knows himself what events he is interested in. If an EventSubscriber is added to an EventDispatcherInterface, the manager invokes {@link getSubscribedEvents} and registers the subscriber as a listener for all returned events. Methods static array getSubscribedEvents() Returns an array of event names this subscriber wants to listen to. Details static array getSubscribedEvents() Returns an arra

EventDispatcherInterface::removeSubscriber()

removeSubscriber(EventSubscriberInterface $subscriber) Removes an event subscriber. Parameters EventSubscriberInterface $subscriber The subscriber

EventDispatcherInterface::removeListener()

removeListener(string $eventName, callable $listener) Removes an event listener from the specified events. Parameters string $eventName The event to remove a listener from callable $listener The listener to remove

EventDispatcherInterface::hasListeners()

bool hasListeners(string $eventName = null) Checks whether an event has any registered listeners. Parameters string $eventName The name of the event Return Value bool true if the specified event has any listeners, false otherwise

EventDispatcherInterface::getListeners()

array getListeners(string $eventName = null) Gets the listeners of a specific event or all listeners sorted by descending priority. Parameters string $eventName The name of the event Return Value array The event listeners for the specified event, or all event listeners by event name

EventDispatcherInterface::getListenerPriority()

int|null getListenerPriority(string $eventName, callable $listener) Gets the listener priority for a specific event. Returns null if the event or the listener does not exist. Parameters string $eventName The name of the event callable $listener The listener Return Value int|null The event listener priority

EventDispatcherInterface::dispatch()

Event dispatch(string $eventName, Event $event = null) Dispatches an event to all registered listeners. Parameters string $eventName The name of the event to dispatch. The name of the event is the name of the method that is invoked on listeners. Event $event The event to pass to the event handlers/listeners If not supplied, an empty Event instance is created. Return Value Event