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
2016-10-28 06:20:59
Comments
Leave a Comment

Please login to continue.