EventDispatcherInterface
EventDispatcherInterface
interface EventDispatcherInterface
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.
Methods
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. | 登录查看完整内容 |