diff --git a/src/Phpforce/Common/AbstractHasDispatcher.php b/src/Phpforce/Common/AbstractHasDispatcher.php index 6cfe360..211cbf9 100644 --- a/src/Phpforce/Common/AbstractHasDispatcher.php +++ b/src/Phpforce/Common/AbstractHasDispatcher.php @@ -3,7 +3,7 @@ use Symfony\Component\EventDispatcher\EventDispatcherInterface; use Symfony\Component\EventDispatcher\EventDispatcher; -use Symfony\Component\EventDispatcher\Event; +use Symfony\Component\EventDispatcher\GenericEvent as Event; /** * Can be extended by classes that dispatch events using the event dispatcher @@ -53,7 +53,7 @@ public function getEventDispatcher() */ protected function dispatch($name, Event $event) { - return $this->getEventDispatcher()->dispatch($name, $event); + return $this->getEventDispatcher()->dispatch($event, $name); } }