ImmutableEventDispatcher::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
doc_Symfony
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.