private function preProcess(Event $event)
	{
		foreach ($this->dispatcher->getListeners($event) as $listener)
		{
			if ($listener instanceof TraceableListener)
			{
				continue;
			}

			$priority = $this->dispatcher->getListenerPriority($listener, $event);

			//$this->dispatcher->removeListener($listener, $event);

			$info = $this->getListenerInfo($listener, $event->getName());
			$name = isset($info['class']) ? $info['class'] : $info['type'];

			$this->dispatcher->getListeners()[$event->getName()]->remove($listener);
			$this->dispatcher->getListeners()[$event->getName()]->add(new TraceableListener($listener, $name, $this->stopwatch), $priority);

			//$this->dispatcher->addListener(new TraceableListener($listener, $name, $this->stopwatch), array($event->getName() => $priority));
		}
	}
private function preProcess(Event $event)
	{
		foreach ($this->dispatcher->getListeners($event) as $listener)
		{
			if ($listener instanceof TraceableListener)
			{
				continue;
			}

			$priority = $this->dispatcher->getListenerPriority($listener, $event);

			//$this->dispatcher->removeListener($listener, $event);

			$info = $this->getListenerInfo($listener, $event->getName());
			$name = isset($info['class']) ? $info['class'] : $info['type'];

			$this->dispatcher->getListeners()[$event->getName()]->remove($listener);
			$this->dispatcher->getListeners()[$event->getName()]->add(new TraceableListener($listener, $name, $this->stopwatch), $priority);

			//$this->dispatcher->addListener(new TraceableListener($listener, $name, $this->stopwatch), array($event->getName() => $priority));
		}
	}
private function preProcess ( Event $ event ) { foreach ( $ this -> dispatcher -> getListeners ( $ event ) as $ listener ) { if ( $ listener instanceof TraceableListener ) { continue ; } $ priority = $ this -> dispatcher -> getListenerPriority ( $ listener , $ event ) ; //$this->dispatcher->removeListener($listener, $event); $ info = $ this -> getListenerInfo ( $ listener , $ event -> getName ( ) ) ; $ name = isset ( $ info [ 'class' ] ) ? $ info [ 'class' ] : $ info [ 'type' ] ; $ this -> dispatcher -> getListeners ( ) [ $ event -> getName ( ) ] -> remove ( $ listener ) ; $ this -> dispatcher -> getListeners ( ) [ $ event -> getName ( ) ] -> add ( new TraceableListener ( $ listener , $ name , $ this -> stopwatch ) , $ priority ) ; //$this->dispatcher->addListener(new TraceableListener($listener, $name, $this->stopwatch), array($event->getName() => $priority)); } }
Called before preTrigger

@param   object  $event  The event
@return  void
Called before preTrigger