class ImmutableEventDispatcher implements EventDispatcherInterface
A read-only proxy for an event dispatcher.
Methods
__construct(EventDispatcherInterface $dispatcher) Creates an unmodifiable proxy for an event dispatcher.
Event dispatch(string $eventName, Event $event = null) Dispatches an event to all registered listeners.
addListener(string $eventName, callable $listener, int $priority) Adds an event listener that listens on the specified events.
addSubscriber(EventSubs