From 222b4582803f3428526f2e06404ec7b9a0f54da1 Mon Sep 17 00:00:00 2001
From: Christoph Wurst <christoph@winzerhof-wurst.at>
Date: Tue, 10 Sep 2019 11:26:55 +0200
Subject: [PATCH] Use the new Symfony event dispatcher signature

Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
---
 lib/private/EventDispatcher/EventDispatcher.php | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/lib/private/EventDispatcher/EventDispatcher.php b/lib/private/EventDispatcher/EventDispatcher.php
index 8db2f3101be..bbf6ae2b368 100644
--- a/lib/private/EventDispatcher/EventDispatcher.php
+++ b/lib/private/EventDispatcher/EventDispatcher.php
@@ -71,8 +71,7 @@ class EventDispatcher implements IEventDispatcher {
 
 	public function dispatch(string $eventName,
 							 Event $event): void {
-
-		$this->dispatcher->dispatch($eventName, $event);
+		$this->dispatcher->dispatch($event, $eventName);
 	}
 
 	/**
-- 
GitLab