8000 [EventDispatcher] Removed unused argument. · proofek/symfony@0fe8ac6 · GitHub
[go: up one dir, main page]

Skip to content

Commit 0fe8ac6

Browse files
author
Drak
committed
[EventDispatcher] Removed unused argument.
1 parent 2d53751 commit 0fe8ac6

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/Symfony/Component/EventDispatcher/EventDispatcher.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public function dispatch($eventName, Event $event = null)
4747
$event = new Event();
4848
}
4949

50-
$this->doDispatch($this->getListeners($eventName), $eventName, $event);
50+
$this->doDispatch($this->getListeners($eventName), $event);
5151
}
5252

5353
/**
@@ -150,10 +150,9 @@ public function removeSubscriber(EventSubscriberInterface $subscriber)
150150
* for each listener.
151151
*
152152
* @param array[callback] $listeners The event listeners.
153-
* @param string $eventName The name of the event to dispatch.
154153
* @param Event $event The event object to pass to the event handlers/listeners.
155154
*/
156-
protected function doDispatch($listeners, $eventName, Event $event)
155+
protected function doDispatch($listeners, Event $event)
157156
{
158157
foreach ($listeners as $listener) {
159158
call_user_func($listener, $event);

0 commit comments

Comments
 (0)
0