Improve phrasing for rebuild worker registration
authorTim Düsterhus <duesterhus@woltlab.com>
Tue, 6 Dec 2022 12:42:09 +0000 (13:42 +0100)
committerGitHub <noreply@github.com>
Tue, 6 Dec 2022 12:42:09 +0000 (13:42 +0100)
Co-authored-by: Alexander Ebert <ebert@woltlab.com>
docs/migration/wsc55/php.md

index dc01ebf4f84fae4545e772e4c62f2ff21195cc8c..2e0ce507bb451dc6dd124709c5979e8117a1319d 100644 (file)
@@ -244,7 +244,8 @@ 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:
+You can attach an event listener to the `wcf\system\worker\event\RebuildWorkerCollecting` event inside a [bootstrap script](#bootstrap-scripts) to lazily register workers.
+The class name of the worker is registered using the event’s `register()` method:
 
 ```php title="files/lib/bootstrap/com.example.bar.php"
 <?php