summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2020-10-30 09:54:48 +0100
committerGitHub <noreply@github.com>2020-10-30 09:54:48 +0100
commit1654826e83d5e3150a8b609f6476af631657204e (patch)
tree781700d621b345cdc48a5e20a9518e3efd9a5bb7 /core
parent54888587cddde8c4d9a4edebcaad61fc6537f759 (diff)
parent22f04a7cc3d6911652452773c9432af6d53f90f7 (diff)
downloadnextcloud-server-1654826e83d5e3150a8b609f6476af631657204e.tar.gz
nextcloud-server-1654826e83d5e3150a8b609f6476af631657204e.zip
Merge pull request #23742 from nextcloud/enhancement/eventdispatcher-typed-listener-callable
Type the event dispatcher listener callables with Psalm
Diffstat (limited to 'core')
-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();