The EventManager is the central point of Doctrine's event listener system. Listeners are registered on the manager and events are dispatched through the manager.
Methods | ||
---|---|---|
public
|
dispatchEvent(string $eventName, EventArgs|null $eventArgs = null): void
|
# |
public
|
getListeners(string|null $event = null): object[]|array<string, object[]>
|
# |
public
|
getAllListeners(): array<string, object[]>
|
# |
public
|
hasListeners(string $event): bool
|
# |
public
|
addEventListener(string|string[] $events, object $listener): void
|
# |
public
|
removeEventListener(string|string[] $events, object $listener): void
|
# |
public
|
addEventSubscriber(EventSubscriber $subscriber): void
|
# |
public
|
removeEventSubscriber(EventSubscriber $subscriber): void
|
# |