24 public static function newJob(
32 'source' => $source->getPrefixedText(),
33 'target' => $target->getPrefixedText(),
35 'summary' => $summary,
36 'performer' => $performer->getName(),
39 $self =
new self( $target, $params );
44 public function __construct( Title $title, array $params = [] ) {
45 parent::__construct(
'MoveTranslatableBundleJob', $title, $params );
46 $this->bundleMover = Services::getInstance()->getTranslatableBundleMover();
49 public function run() {
50 $sourceTitle = Title::newFromText( $this->params[
'source'] );
51 $targetTitle = Title::newFromText( $this->params[
'target'] );
53 $userFactory = MediaWikiServices::getInstance()->getUserFactory();
54 $performer = $userFactory->newFromName( $this->params[
'performer'] );
56 $this->bundleMover->moveSynchronously(
59 $this->params[
'moves'],
61 $this->params[
'summary']