Inherits LoggerAwareInterface.
- See also
- ExternalStoreAccess
- Access: internal
- Use the ExternalStoreAccess service instead.
- Since
- 1.31
Definition at line 14 of file ExternalStoreFactory.php.
◆ __construct()
ExternalStoreFactory::__construct |
( |
array | $externalStores, |
|
|
array | $defaultStores, |
|
|
string | $localDomainId, |
|
|
LoggerInterface | $logger = null ) |
- Parameters
-
string[] | $externalStores | See $wgExternalStores |
string[] | $defaultStores | See $wgDefaultExternalStore |
string | $localDomainId | Local database/wiki ID |
LoggerInterface | null | $logger | |
Definition at line 30 of file ExternalStoreFactory.php.
◆ getProtocols()
ExternalStoreFactory::getProtocols |
( |
| ) |
|
- Returns
- string[] List of active store types/protocols (lowercased), e.g. [ "db" ]
- Since
- 1.34
Definition at line 50 of file ExternalStoreFactory.php.
◆ getStore()
ExternalStoreFactory::getStore |
( |
| $proto, |
|
|
array | $params = [] ) |
Get an external store object of the given type, with the given parameters.
The 'domain' field in $params will be set to the local DB domain if it is unset or false. A special 'isDomainImplicit' flag is set when this happens, which should only be used to handle legacy DB domain configuration concerns (e.g. T200471).
- Parameters
-
- Returns
- ExternalStoreMedium The store class or false on error
- Exceptions
-
Definition at line 74 of file ExternalStoreFactory.php.
Referenced by getStoreForUrl().
◆ getStoreForUrl()
ExternalStoreFactory::getStoreForUrl |
( |
| $url, |
|
|
array | $params = [] ) |
◆ getStoreLocationFromUrl()
ExternalStoreFactory::getStoreLocationFromUrl |
( |
| $url | ) |
|
Get the location within the appropriate store for a given a URL.
- Parameters
-
- Returns
- string
- Exceptions
-
- Since
- 1.34
Definition at line 139 of file ExternalStoreFactory.php.
◆ getUrlsByProtocol()
ExternalStoreFactory::getUrlsByProtocol |
( |
array | $urls | ) |
|
- Parameters
-
- Returns
- string[][] Map of (protocol => list of URLs)
- Exceptions
-
- Since
- 1.34
Definition at line 154 of file ExternalStoreFactory.php.
◆ getWriteBaseUrls()
ExternalStoreFactory::getWriteBaseUrls |
( |
| ) |
|
- Returns
- string[] List of default base URLs for writes, e.g. [ "DB://cluster1" ]
- Since
- 1.34
Definition at line 58 of file ExternalStoreFactory.php.
◆ setLogger()
ExternalStoreFactory::setLogger |
( |
LoggerInterface | $logger | ) |
|
The documentation for this class was generated from the following file: