手册:$wgCentralIdLookupProviders

From MediaWiki.org
Jump to navigation Jump to search
This page is a translated version of the page Manual:$wgCentralIdLookupProviders and the translation is 60% complete.

Other languages:
Deutsch • ‎English • ‎español • ‎magyar • ‎polski • ‎português • ‎中文 • ‎日本語
认证: $wgCentralIdLookupProviders
注册中心ID查找提供者。
引进版本:1.27.0 (Gerrit change 254300; git #d032bb52)
移除版本:仍在使用
允许的值:(提供者ID的ObjectFactory 规格字符串)
默认值:[ 'local' => [ 'class' => 'LocalIdLookup' ] ]
其他设置: 按首字母排序 | 按功能排序

详情

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

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

例子

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

参见