Manual:$wgCentralIdLookupProviders

Authentication: $wgCentralIdLookupProviders
Register central ID lookup providers.
Introduced in version:1.27.0 (Gerrit change 254300; git #d032bb52)
Removed in version:still in use
Allowed values:(array of Provider ID's to ObjectFactory specifications)
Default value:(see below)

DetailsEdit

Used to define what classes implement CentralIdLookup for various look up services.

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

Default valuesEdit

MediaWiki version:
1.37
Gerrit change 700991
$wgCentralIdLookupProviders = [
	'local' => [
		'class' => LocalIdLookup::class,
		'services' => [
			'MainConfig',
			'DBLoadBalancer',
		]
	],
];
MediaWiki versions:
1.31 – 1.36
$wgCentralIdLookupProviders = [
	'local' => [ 'class' => LocalIdLookup::class ],
];
MediaWiki versions:
1.27 – 1.30
$wgCentralIdLookupProviders = [
	'local' => [ 'class' => 'LocalIdLookup' ],
];

ExampleEdit

$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.

See alsoEdit