Migrate to new event organization
authorMarcel Werk <burntime@woltlab.com>
Sun, 12 May 2024 10:31:20 +0000 (12:31 +0200)
committerMarcel Werk <burntime@woltlab.com>
Sun, 12 May 2024 10:31:20 +0000 (12:31 +0200)
files/lib/bootstrap/com.woltlab.wcf.conversation.php

index 95d9bba5a0880c53493ae03963c59e10a847cfcf..5882aacf687b3ef79b3944cba0158f7adffbee20 100644 (file)
@@ -1,14 +1,16 @@
 <?php
 
 use wcf\system\event\EventHandler;
-use wcf\system\worker\event\RebuildWorkerCollecting;
 
 return static function (): void {
     $eventHandler = EventHandler::getInstance();
 
-    $eventHandler->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);
+        }
+    );
 };