You are here

public function TraceableEventDispatcher::getCalledListeners in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php \Symfony\Component\EventDispatcher\Debug\TraceableEventDispatcher::getCalledListeners()

Gets the called listeners.

Return value

array An array of called listeners

Overrides TraceableEventDispatcherInterface::getCalledListeners

File

vendor/symfony/event-dispatcher/Debug/TraceableEventDispatcher.php, line 139

Class

TraceableEventDispatcher
Collects some data about event listeners.

Namespace

Symfony\Component\EventDispatcher\Debug

Code

public function getCalledListeners() {
  $called = array();
  foreach ($this->called as $eventName => $listeners) {
    foreach ($listeners as $listener) {
      $info = $this
        ->getListenerInfo($listener
        ->getWrappedListener(), $eventName);
      $called[$eventName . '.' . $info['pretty']] = $info;
    }
  }
  return $called;
}