Manual:$wgCentralIdLookupProviders

From MediaWiki.org
Jump to: navigation, search

Other languages:
Deutsch • ‎English • ‎español • ‎日本語 • ‎polski • ‎português • ‎中文
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 ObjectFactoryObjectFactory specifications
Default value: [ 'local' => [ 'class' => 'LocalIdLookup' ] ]
Other settings: Alphabetical | By function

Details[edit]

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

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

Example[edit]

$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 also[edit]