private function postProcess(Event $event)
	{
		$skipped = false;

		foreach ($this->dispatcher->getListeners($event) as $listener)
		{
			if (!($listener instanceof TraceableListener))
			{
				// A new listener was added during dispatch.
				continue;
			}

			// Unwrap listener
			//$this->dispatcher->removeListener($listener, $event);
			//$this->dispatcher->addListener($listener->getWrappedListener(), $event);
			$priority = $this->dispatcher->getListenerPriority($listener, $event);

			$this->dispatcher->getListeners()[$event->getName()]->remove($listener);
			$this->dispatcher->getListeners()[$event->getName()]->add($listener->getWrappedListener(), $priority);

			$info = $this->getListenerInfo($listener->getWrappedListener(), $event->getName());

			$eventName = $event->getName();

			if ($listener->wasCalled())
			{
				if (null !== $this->logger)
				{
					$this->logger->debug(sprintf('Notified event "%s" to listener "%s".', $eventName, $info['pretty']));
				}

				if (!isset($this->called[$eventName]))
				{
					$this->called[$eventName] = new \SplObjectStorage();
				}

				$this->called[$eventName]->attach($listener);
			}

			if (null !== $this->logger && $skipped)
			{
				$this->logger->debug(sprintf('Listener "%s" was not called for event "%s".', $info['pretty'], $eventName));
			}

			if ($listener->stoppedPropagation())
			{
				if (null !== $this->logger)
				{
					$this->logger->debug(sprintf('Listener "%s" stopped propagation of the event "%s".', $info['pretty'], $eventName));
				}

				$skipped = true;
			}
		}
	}
private function postProcess(Event $event)
	{
		$skipped = false;

		foreach ($this->dispatcher->getListeners($event) as $listener)
		{
			if (!($listener instanceof TraceableListener))
			{
				// A new listener was added during dispatch.
				continue;
			}

			// Unwrap listener
			//$this->dispatcher->removeListener($listener, $event);
			//$this->dispatcher->addListener($listener->getWrappedListener(), $event);
			$priority = $this->dispatcher->getListenerPriority($listener, $event);

			$this->dispatcher->getListeners()[$event->getName()]->remove($listener);
			$this->dispatcher->getListeners()[$event->getName()]->add($listener->getWrappedListener(), $priority);

			$info = $this->getListenerInfo($listener->getWrappedListener(), $event->getName());

			$eventName = $event->getName();

			if ($listener->wasCalled())
			{
				if (null !== $this->logger)
				{
					$this->logger->debug(sprintf('Notified event "%s" to listener "%s".', $eventName, $info['pretty']));
				}

				if (!isset($this->called[$eventName]))
				{
					$this->called[$eventName] = new \SplObjectStorage();
				}

				$this->called[$eventName]->attach($listener);
			}

			if (null !== $this->logger && $skipped)
			{
				$this->logger->debug(sprintf('Listener "%s" was not called for event "%s".', $info['pretty'], $eventName));
			}

			if ($listener->stoppedPropagation())
			{
				if (null !== $this->logger)
				{
					$this->logger->debug(sprintf('Listener "%s" stopped propagation of the event "%s".', $info['pretty'], $eventName));
				}

				$skipped = true;
			}
		}
	}
private function postProcess ( Event $ event ) { $ skipped = false ; foreach ( $ this -> dispatcher -> getListeners ( $ event ) as $ listener ) { if ( ! ( $ listener instanceof TraceableListener ) ) { // A new listener was added during dispatch. continue ; } // Unwrap listener //$this->dispatcher->removeListener($listener, $event); //$this->dispatcher->addListener($listener->getWrappedListener(), $event); $ priority = $ this -> dispatcher -> getListenerPriority ( $ listener , $ event ) ; $ this -> dispatcher -> getListeners ( ) [ $ event -> getName ( ) ] -> remove ( $ listener ) ; $ this -> dispatcher -> getListeners ( ) [ $ event -> getName ( ) ] -> add ( $ listener -> getWrappedListener ( ) , $ priority ) ; $ info = $ this -> getListenerInfo ( $ listener -> getWrappedListener ( ) , $ event -> getName ( ) ) ; $ eventName = $ event -> getName ( ) ; if ( $ listener -> wasCalled ( ) ) { if ( null !== $ this -> logger ) { $ this -> logger -> debug ( sprintf ( 'Notified event "%s" to listener "%s".' , $ eventName , $ info [ 'pretty' ] ) ) ; } if ( ! isset ( $ this -> called [ $ eventName ] ) ) { $ this -> called [ $ eventName ] = new \ SplObjectStorage ( ) ; } $ this -> called [ $ eventName ] -> attach ( $ listener ) ; } if ( null !== $ this -> logger && $ skipped ) { $ this -> logger -> debug ( sprintf ( 'Listener "%s" was not called for event "%s".' , $ info [ 'pretty' ] , $ eventName ) ) ; } if ( $ listener -> stoppedPropagation ( ) ) { if ( null !== $ this -> logger ) { $ this -> logger -> debug ( sprintf ( 'Listener "%s" stopped propagation of the event "%s".' , $ info [ 'pretty' ] , $ eventName ) ) ; } $ skipped = true ; } } }
Called after postTrigger

@param   object  $event  The event
@return  void
Called after postTrigger