public function ImmutableEventDispatcher::hasListeners in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/event-dispatcher/ImmutableEventDispatcher.php \Symfony\Component\EventDispatcher\ImmutableEventDispatcher::hasListeners()
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
Overrides EventDispatcherInterface::hasListeners
File
- vendor/
symfony/ event-dispatcher/ ImmutableEventDispatcher.php, line 89
Class
- ImmutableEventDispatcher
- A read-only proxy for an event dispatcher.
Namespace
Symfony\Component\EventDispatcherCode
public function hasListeners($eventName = null) {
return $this->dispatcher
->hasListeners($eventName);
}