Manual:$wgCentralIdLookupProviders

This page is a translated version of the page Manual:$wgCentralIdLookupProviders and the translation is 67% complete.
認証: $wgCentralIdLookupProviders
中央管理 ID ルックアップ プロバイダーを登録する。
導入されたバージョン:1.27.0 (Gerrit change 254300; git #d032bb52)
除去されたバージョン:使用中
許容される値:(ObjectFactory 仕様のプロバイダー ID の配列)
既定値:(下記参照)

詳細

Used to define what classes implement MediaWiki\User\CentralId\CentralIdLookup for various look up services.

Key is the provider ID, value is a specification for ObjectFactory .

既定値

MediaWiki バージョン:
1.42
$wgCentralIdLookupProviders = [
	'local' => [
		'class' => LocalIdLookup::class,
		'services' => [
			'MainConfig',
			'DBLoadBalancerFactory',
			'HideUserUtils',
		]
	],
];
MediaWiki バージョン:
1.41
Gerrit change 925722
$wgCentralIdLookupProviders = [
	'local' => [
		'class' => LocalIdLookup::class,
		'services' => [
			'MainConfig',
			'DBLoadBalancerFactory',
		]
	],
];
MediaWiki バージョン:
1.37 – 1.40
Gerrit change 700991
$wgCentralIdLookupProviders = [
	'local' => [
		'class' => LocalIdLookup::class,
		'services' => [
			'MainConfig',
			'DBLoadBalancer',
		]
	],
];
MediaWiki バージョン:
1.31 – 1.36
$wgCentralIdLookupProviders = [
	'local' => [ 'class' => LocalIdLookup::class ],
];
MediaWiki バージョン:
1.27 – 1.30
$wgCentralIdLookupProviders = [
	'local' => [ 'class' => 'LocalIdLookup' ],
];

$wgCentralIdLookupProviders['mycustom'] = [
    'class' => 'MyCustomCentralIdLookup',
    'args' => [ 'arg1', 'arg2' ],
];

or, if the extension uses extension registration (preferable):

{
    //...
    "CentralIdLookupProviders": {
        "mycustom": {
            "class": "MyCustomCentralIdLookup",
            "args": [ "arg1", "arg2" ]
    },
    //...
}

This will create an object with new MyCustomCentralIdLookup( 'arg1', 'arg2' ), and register it as a central ID lookup service.

関連項目