public function ImmutableEventDispatcher::getListeners in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/event-dispatcher/ImmutableEventDispatcher.php \Symfony\Component\EventDispatcher\ImmutableEventDispatcher::getListeners()
Gets the listeners of a specific event or all listeners sorted by descending priority.
Parameters
string $eventName The name of the event:
Return value
array The event listeners for the specified event, or all event listeners by event name
Overrides EventDispatcherInterface::getListeners
File
- vendor/
symfony/ event-dispatcher/ ImmutableEventDispatcher.php, line 81
Class
- ImmutableEventDispatcher
- A read-only proxy for an event dispatcher.
Namespace
Symfony\Component\EventDispatcherCode
public function getListeners($eventName = null) {
return $this->dispatcher
->getListeners($eventName);
}