Manual:$wgCentralIdLookupProviders/es

From MediaWiki.org
Jump to navigation Jump to search
This page is a translated version of the page Manual:$wgCentralIdLookupProviders and the translation is 8% complete.
Other languages:
English • ‎español • ‎magyar • ‎polski • ‎português • ‎中文 • ‎日本語
Autenticación: $wgCentralIdLookupProviders
Register central ID lookup providers.
Introducido en la versión:1.27.0 (Gerrit change 254300; git #d032bb52)
Eliminado en la versión:aún se usa
Valores permitidos:(array of Provider ID's to ObjectFactory specifications)
Valor predeterminado:(see below)

Details

Utilizado para definir lo que las clases implementan CentralIdLookup para varias miradas arriba de servicios.

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

Default values

Versión de MediaWiki: 1.31
$wgCentralIdLookupProviders = [
	'local' => [ 'class' => LocalIdLookup::class ],
];
Versiones de MediaWiki: 1.27 – 1.30
$wgCentralIdLookupProviders = [
	'local' => [ 'class' => 'LocalIdLookup' ],
];

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.

See also