/** * When loading listener services, store in a separate index the queue to which service is limited * @param string $eventName */ protected function lazyLoad($eventName) { parent::lazyLoad($eventName); if (isset($this->listenerIds[$eventName])) { foreach ($this->listenerIds[$eventName] as $args) { list($serviceId, $method, $priority, $queueName) = $args; if ($queueName != null) { $listener = $this->container->get($serviceId); $key = $serviceId . '.' . $method; $this->listeners[$eventName][$key] = array($listener, $queueName); } } } }
/** * {@inheritDoc} */ protected function lazyLoad($eventName) { $e = $this->stopwatch->start($eventName . '.loading', 'event_listener_loading'); parent::lazyLoad($eventName); $e->stop(); }