You are here

public function ImmutableEventDispatcher::getListeners in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 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\EventDispatcher

Code

public function getListeners($eventName = null) {
  return $this->dispatcher
    ->getListeners($eventName);
}