Security update for Core, with self-updated composer
[yaffs-website] / vendor / symfony / event-dispatcher / EventDispatcher.php
index dec7c85a14d072630d01f5d352fe3abdae57c969..01bfc0066ea25a93dcae37cc9398ef6695fa6035 100644 (file)
@@ -39,9 +39,6 @@ class EventDispatcher implements EventDispatcherInterface
             $event = new Event();
         }
 
-        $event->setDispatcher($this);
-        $event->setName($eventName);
-
         if ($listeners = $this->getListeners($eventName)) {
             $this->doDispatch($listeners, $eventName, $event);
         }
@@ -76,14 +73,7 @@ class EventDispatcher implements EventDispatcherInterface
     }
 
     /**
-     * Gets the listener priority for a specific event.
-     *
-     * Returns null if the event or the listener does not exist.
-     *
-     * @param string   $eventName The name of the event
-     * @param callable $listener  The listener
-     *
-     * @return int|null The event listener priority
+     * {@inheritdoc}
      */
     public function getListenerPriority($eventName, $listener)
     {