MediaWiki  REL1_31
MediaWiki\Storage\BlobStoreFactory Class Reference

Service for instantiating BlobStores. More...

Collaboration diagram for MediaWiki\Storage\BlobStoreFactory:

Public Member Functions

 __construct (LoadBalancer $loadBalancer, WANObjectCache $cache, Config $mainConfig, Language $contLang)
 
 newBlobStore ( $wikiId=false)
 
 newSqlBlobStore ( $wikiId=false)
 

Private Attributes

WANObjectCache $cache
 
Config $config
 
Language $contLang
 
LoadBalancer $loadBalancer
 

Detailed Description

Service for instantiating BlobStores.

This can be used to create BlobStore objects for other wikis.

Since
1.31

Definition at line 35 of file BlobStoreFactory.php.

Constructor & Destructor Documentation

◆ __construct()

MediaWiki\Storage\BlobStoreFactory::__construct ( LoadBalancer  $loadBalancer,
WANObjectCache  $cache,
Config  $mainConfig,
Language  $contLang 
)

Member Function Documentation

◆ newBlobStore()

MediaWiki\Storage\BlobStoreFactory::newBlobStore (   $wikiId = false)
Since
1.31
Parameters
bool | string$wikiIdThe ID of the target wiki database. Use false for the local wiki.
Returns
BlobStore

Definition at line 76 of file BlobStoreFactory.php.

References MediaWiki\Storage\BlobStoreFactory\newSqlBlobStore().

◆ newSqlBlobStore()

MediaWiki\Storage\BlobStoreFactory::newSqlBlobStore (   $wikiId = false)

Definition at line 87 of file BlobStoreFactory.php.

References cache.

Referenced by MediaWiki\Storage\BlobStoreFactory\newBlobStore().

Member Data Documentation

◆ $cache

WANObjectCache MediaWiki\Storage\BlobStoreFactory::$cache
private

Definition at line 45 of file BlobStoreFactory.php.

Referenced by MediaWiki\Storage\BlobStoreFactory\__construct().

◆ $config

Config MediaWiki\Storage\BlobStoreFactory::$config
private

Definition at line 50 of file BlobStoreFactory.php.

◆ $contLang

Language MediaWiki\Storage\BlobStoreFactory::$contLang
private

Definition at line 55 of file BlobStoreFactory.php.

Referenced by MediaWiki\Storage\BlobStoreFactory\__construct().

◆ $loadBalancer

LoadBalancer MediaWiki\Storage\BlobStoreFactory::$loadBalancer
private

Definition at line 40 of file BlobStoreFactory.php.

Referenced by MediaWiki\Storage\BlobStoreFactory\__construct().


The documentation for this class was generated from the following file: