Podręcznik:$wgCentralIdLookupProviders
Identyfikacja: $wgCentralIdLookupProviders | |
---|---|
Register central ID lookup providers. |
|
Wprowadzono w wersji: | 1.27.0 (Gerrit change 254300; git #d032bb52) |
Usunięto w wersji: | nadal w użyciu |
Dozwolone wartości: | (array of Provider ID's to ObjectFactory specifications) |
Domyślna wartość: | [ 'local' => [ 'class' => 'LocalIdLookup' ] ] |
Inne ustawienia: Alfabetycznie | Według funkcji |
Szczegóły
Used to define what classes implement CentralIdLookup for various look up services.
Key is the provider ID, value is a specification for ObjectFactory .
Example
$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.