Allow callback functions for creating jobs
[lhc/web/wiklou.git] / includes / DefaultSettings.php
index 7c18fcc..a6bc7e5 100644 (file)
@@ -7332,8 +7332,10 @@ $wgServiceWiringFiles = [
 ];
 
 /**
- * Maps jobs to their handling classes; extensions
- * can add to this to provide custom jobs
+ * Maps jobs to their handlers; extensions
+ * can add to this to provide custom jobs.
+ * A job handler should either be a class name to be instantiated,
+ * or (since 1.30) a callback to use for creating the job object.
  */
 $wgJobClasses = [
        'refreshLinks' => 'RefreshLinksJob',