From 22f04a7cc3d6911652452773c9432af6d53f90f7 Mon Sep 17 00:00:00 2001 From: Roeland Jago Douma Date: Thu, 29 Oct 2020 20:15:04 +0100 Subject: Fix invalid usages of the new dispatcher Signed-off-by: Roeland Jago Douma --- core/Application.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'core') diff --git a/core/Application.php b/core/Application.php index 2e2579f094e..a452ca9677f 100644 --- a/core/Application.php +++ b/core/Application.php @@ -73,7 +73,9 @@ class Application extends App { $notificationManager->registerNotifierService(RemoveLinkSharesNotifier::class); $notificationManager->registerNotifierService(AuthenticationNotifier::class); - $eventDispatcher->addListener(IDBConnection::CHECK_MISSING_INDEXES_EVENT, + $oldEventDispatcher = $server->getEventDispatcher(); + + $oldEventDispatcher->addListener(IDBConnection::CHECK_MISSING_INDEXES_EVENT, function (GenericEvent $event) use ($container) { /** @var MissingIndexInformation $subject */ $subject = $event->getSubject(); @@ -179,7 +181,7 @@ class Application extends App { } ); - $eventDispatcher->addListener(IDBConnection::CHECK_MISSING_COLUMNS_EVENT, + $oldEventDispatcher->addListener(IDBConnection::CHECK_MISSING_COLUMNS_EVENT, function (GenericEvent $event) use ($container) { /** @var MissingColumnInformation $subject */ $subject = $event->getSubject(); -- cgit v1.2.3