From: Marcel Werk Date: Sun, 12 May 2024 10:31:20 +0000 (+0200) Subject: Migrate to new event organization X-Git-Tag: 6.1.0_Alpha_1~5 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=2b79a5865860be04cb59eff6ae862fcc1e12df89;p=GitHub%2FWoltLab%2Fcom.woltlab.wcf.conversation.git Migrate to new event organization --- diff --git a/files/lib/bootstrap/com.woltlab.wcf.conversation.php b/files/lib/bootstrap/com.woltlab.wcf.conversation.php index 95d9bba..5882aac 100644 --- a/files/lib/bootstrap/com.woltlab.wcf.conversation.php +++ b/files/lib/bootstrap/com.woltlab.wcf.conversation.php @@ -1,14 +1,16 @@ register(RebuildWorkerCollecting::class, static function (RebuildWorkerCollecting $event) { - $event->register(\wcf\system\worker\ConversationMessageRebuildDataWorker::class, -5); - $event->register(\wcf\system\worker\ConversationRebuildDataWorker::class, 0); - $event->register(\wcf\system\worker\ConversationMessageSearchIndexRebuildDataWorker::class, 300); - }); + $eventHandler->register( + \wcf\event\worker\RebuildWorkerCollecting::class, + static function (\wcf\event\worker\RebuildWorkerCollecting $event) { + $event->register(\wcf\system\worker\ConversationMessageRebuildDataWorker::class, -5); + $event->register(\wcf\system\worker\ConversationRebuildDataWorker::class, 0); + $event->register(\wcf\system\worker\ConversationMessageSearchIndexRebuildDataWorker::class, 300); + } + ); };