summaryrefslogtreecommitdiff
blob: 8aea6775db1e7466e25c18389621db327753c624 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<?php
/**
 * System account to handle user related modifications
 *
 * @file
 * @author Abijeet Patro
 * @license GPL-2.0-or-later
 */

namespace MediaWiki\Extension\Translate\SystemUsers;

use User;

/** @since 2019.08 */
class TranslateUserManager {
	public static function getUser() {
		return User::newSystemUser( self::getName(), [ 'steal' => true ] );
	}

	public static function getName() {
		global $wgTranslateUserManagerName;

		return $wgTranslateUserManagerName;
	}
}

class_alias( TranslateUserManager::class, '\MediaWiki\Extensions\Translate\TranslateUserManager' );