Esempio n. 1
0
 /**
  * Queue the HAWelcome communication using the new task system. This function
  * will toggle between the old and the new based on the configuration in TaskRunner.
  *
  * This will be removed once the system is fully migrated.
  *
  * @param int   $wgCityId the city id
  * @param Title $oTitle
  * @param array $aParams
  * @return void
  */
 public static function queueHAWelcomeTask($wgCityId, $oTitle, $aParams)
 {
     $task = new HAWelcomeTask();
     $task->call('sendWelcomeMessage', $aParams);
     $task->wikiId($wgCityId);
     $task->title($oTitle);
     // use $this->title in the job
     $task->prioritize();
     $task->queue();
 }