Definition at line 35 of file CentralIdLookupFactory.php.
◆ __construct()
◆ getDefaultProviderId()
MediaWiki\User\CentralId\CentralIdLookupFactory::getDefaultProviderId |
( |
| ) |
|
◆ getLookup()
MediaWiki\User\CentralId\CentralIdLookupFactory::getLookup |
( |
string |
$providerId = null | ) |
|
Get an instance of a CentralIdLookup.
- Parameters
-
string | null | $providerId | Provider ID from $wgCentralIdLookupProviders or null to use the provider configured in $wgCentralIdLookupProvider |
- Returns
- CentralIdLookup
- Exceptions
-
InvalidArgumentException | if $providerId is not properly configured |
Definition at line 104 of file CentralIdLookupFactory.php.
◆ getNonLocalLookup()
MediaWiki\User\CentralId\CentralIdLookupFactory::getNonLocalLookup |
( |
string |
$providerID = null | ) |
|
Returns a CentralIdLookup that is guaranteed to be non-local.
If no such guarantee can be made, returns null.
If this function returns a non-null CentralIdLookup, that lookup is expected to provide IDs that are shared with some set of other wikis. However, you should still be cautious when using those IDs, as they will not necessarily work with all other wikis, and it can be hard to tell if another wiki is in the same set as this one or not.
- Parameters
-
string | null | $providerID | Provider ID from $wgCentralIdLookupProviders or null to use the provider configured in $wgCentralIdLookupProvider |
- Returns
- ?CentralIdLookup
- Exceptions
-
InvalidArgumentException | if $providerId is not properly configured |
Definition at line 136 of file CentralIdLookupFactory.php.
◆ getProviderIds()
MediaWiki\User\CentralId\CentralIdLookupFactory::getProviderIds |
( |
| ) |
|
◆ $defaultProvider
string MediaWiki\User\CentralId\CentralIdLookupFactory::$defaultProvider |
|
private |
◆ $instanceCache
CentralIdLookup [] MediaWiki\User\CentralId\CentralIdLookupFactory::$instanceCache = [] |
|
private |
◆ $objectFactory
ObjectFactory MediaWiki\User\CentralId\CentralIdLookupFactory::$objectFactory |
|
private |
◆ $providers
array MediaWiki\User\CentralId\CentralIdLookupFactory::$providers |
|
private |
Initial value:=[,,]
public const CONSTRUCTOR_OPTIONS
const CentralIdLookupProviders
Name constant for the CentralIdLookupProviders setting, for use with Config::get()
const CentralIdLookupProvider
Name constant for the CentralIdLookupProvider setting, for use with Config::get()
ObjectFactory specs indexed by provider name.
Definition at line 47 of file CentralIdLookupFactory.php.
◆ $userIdentityLookup
The documentation for this class was generated from the following file: