Преглед на файлове

[FrameworkBundle] Fix the traceable event dispatcher

Victor Berchet преди 14 години
родител
ревизия
46480b7e89
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2 2
      src/Symfony/Bundle/FrameworkBundle/Debug/TraceableEventDispatcher.php

+ 2 - 2
src/Symfony/Bundle/FrameworkBundle/Debug/TraceableEventDispatcher.php

@@ -60,7 +60,7 @@ class TraceableEventDispatcher extends ContainerAwareEventDispatcher implements
         );
 
         if ($event->isPropagationStopped() && null !== $this->logger) {
-            $this->logger->debug(sprintf('Listener "%s" stopped propagation of the event "%s"', $this->listenerToString($listener), $eventName));
+            $this->logger->debug(sprintf('Listener "%s" stopped propagation of the event "%s"', $listenerString, $eventName));
 
             $skippedListeners = $this->getListeners($eventName);
             $skipped = false;
@@ -71,7 +71,7 @@ class TraceableEventDispatcher extends ContainerAwareEventDispatcher implements
                 }
 
                 if ($skippedListener === $listener) {
-                    $skipped = false;
+                    $skipped = true;
                 }
             }
         }