original_string: protected function lazyLoad($eventName)
      {
          if (isset($this->listenerIds[$eventName])) {
              foreach ($this->listenerIds[$eventName] as $args) {
                  list($serviceId, $method, $priority) = $args;
                  $listener = $this->container->get($serviceId);
  
                  $key = $serviceId.'.'.$method;
                  if (!isset($this->listeners[$eventName][$key])) {
                      $this->addListener($eventName, array($listener, $method), $priority);
                  } elseif ($listener !== $this->listeners[$eventName][$key]) {
                      parent::removeListener($eventName, array($this->listeners[$eventName][$key], $method));
                      $this->addListener($eventName, array($listener, $method), $priority);
                  }
  
                  $this->listeners[$eventName][$key] = $listener;
              }
          }
      }
code: protected function lazyLoad($eventName)
      {
          if (isset($this->listenerIds[$eventName])) {
              foreach ($this->listenerIds[$eventName] as $args) {
                  list($serviceId, $method, $priority) = $args;
                  $listener = $this->container->get($serviceId);
  
                  $key = $serviceId.'.'.$method;
                  if (!isset($this->listeners[$eventName][$key])) {
                      $this->addListener($eventName, array($listener, $method), $priority);
                  } elseif ($listener !== $this->listeners[$eventName][$key]) {
                      parent::removeListener($eventName, array($this->listeners[$eventName][$key], $method));
                      $this->addListener($eventName, array($listener, $method), $priority);
                  }
  
                  $this->listeners[$eventName][$key] = $listener;
              }
          }
      }
code_tokens: protected function lazyLoad ( $ eventName ) { if ( isset ( $ this -> listenerIds [ $ eventName ] ) ) { foreach ( $ this -> listenerIds [ $ eventName ] as $ args ) { list ( $ serviceId , $ method , $ priority ) = $ args ; $ listener = $ this -> container -> get ( $ serviceId ) ; $ key = $ serviceId . '.' . $ method ; if ( ! isset ( $ this -> listeners [ $ eventName ] [ $ key ] ) ) { $ this -> addListener ( $ eventName , array ( $ listener , $ method ) , $ priority ) ; } elseif ( $ listener !== $ this -> listeners [ $ eventName ] [ $ key ] ) { parent :: removeListener ( $ eventName , array ( $ this -> listeners [ $ eventName ] [ $ key ] , $ method ) ) ; $ this -> addListener ( $ eventName , array ( $ listener , $ method ) , $ priority ) ; } $ this -> listeners [ $ eventName ] [ $ key ] = $ listener ; } } }
docstring: Lazily loads listeners for this event from the dependency injection
  container.
  
  @param string $eventName The name of the event to dispatch. The name of
  the event is the name of the method that is
  invoked on listeners.
docstring_tokens: Lazily loads listeners for this event from the dependency injection container .