The `$identifier` property will no longer be used and may be removed.
See [WoltLab/WCF#5077](https://github.com/WoltLab/WCF/pull/5077) for details.
+
+## Rebuild Workers
+
+Rebuild workers should no longer be registered using the `com.woltlab.wcf.rebuildData` object type definition.
+Instead an event listener for the `wcf\system\worker\event\RebuildWorkerCollecting` event should be registered in a [bootstrap script](#bootstrap-scripts) the worker classname be registered using the event’s `register()` method:
+
+```php title="files/lib/bootstrap/com.example.bar.php"
+<?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(\bar\system\worker\BazWorker::class, 0);
+ });
+};
+```
<import>
<type>
<name>com.woltlab.wcf.example</name>
- <definitionname>com.woltlab.wcf.rebuildData</definitionname>
- <classname>wcf\system\worker\ExampleRebuildWorker</classname>
- <nicevalue>130</nicevalue>
+ <definitionname>com.woltlab.wcf.bulkProcessing.user.condition</definitionname>
+ <classname>wcf\system\condition\UserIntegerPropertyCondition</classname>
+ <conditiongroup>contents</conditiongroup>
+ <propertyname>example</propertyname>
+ <minvalue>0</minvalue>
</type>
</import>
-</data>
\ No newline at end of file
+</data>