summaryrefslogtreecommitdiffstats
path: root/core/Application.php
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2020-10-29 20:15:04 +0100
committerRoeland Jago Douma <roeland@famdouma.nl>2020-10-29 20:15:04 +0100
commit22f04a7cc3d6911652452773c9432af6d53f90f7 (patch)
tree332442d3ad733be53b80bc81d9a77a1e1fc0281b /core/Application.php
parent469ba175ce77d23af868cbe5cbf14891e09075a2 (diff)
downloadnextcloud-server-22f04a7cc3d6911652452773c9432af6d53f90f7.tar.gz
nextcloud-server-22f04a7cc3d6911652452773c9432af6d53f90f7.zip
Fix invalid usages of the new dispatcher
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'core/Application.php')
-rw-r--r--core/Application.php6
1 files changed, 4 insertions, 2 deletions
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();