$revertRevisionId, 'editResult' => $editResult->jsonSerialize() ] ); } /** * @param array $params * @phan-param array{revertId:int,editResult:array} $params */ public function __construct( array $params ) { parent::__construct( 'revertedTagUpdate', $params ); } /** * Unpacks the job arguments and runs the update. * * @return bool */ public function run() { $services = MediaWikiServices::getInstance(); $editResult = EditResult::newFromArray( $this->params['editResult'] ); $update = new RevertedTagUpdate( $services->getRevisionStore(), LoggerFactory::getInstance( 'RevertedTagUpdate' ), $services->getChangeTagsStore(), $services->getConnectionProvider(), new ServiceOptions( RevertedTagUpdate::CONSTRUCTOR_OPTIONS, $services->getMainConfig() ), $this->params['revertId'], $editResult ); $update->doUpdate(); return true; } }