public function ContainerAwareTraceableEventDispatcher::getNotCalledListeners

Gets the not called listeners.

Return value

array An array of not called listeners

Overrides TraceableEventDispatcherInterface::getNotCalledListeners

File

drupal/core/vendor/symfony/http-kernel/Symfony/Component/HttpKernel/Debug/ContainerAwareTraceableEventDispatcher.php, line 190

Class

ContainerAwareTraceableEventDispatcher
Extends the ContainerAwareEventDispatcher to add some debugging tools.

Namespace

Symfony\Component\HttpKernel\Debug

Code

public function getNotCalledListeners() {
  $notCalled = array();
  foreach ($this
    ->getListeners() as $name => $listeners) {
    foreach ($listeners as $listener) {
      $info = $this
        ->getListenerInfo($listener, $name);
      if (!isset($this->called[$name . '.' . $info['pretty']])) {
        $notCalled[$name . '.' . $info['pretty']] = $info;
      }
    }
  }
  return $notCalled;
}