namespace MediaWiki\Storage;
-use Language;
use MediaWiki\Config\ServiceOptions;
use WANObjectCache;
use Wikimedia\Rdbms\ILBFactory;
*/
private $options;
- /**
- * @var Language
- */
- private $contLang;
-
/**
* @var array
* @since 1.34
ILBFactory $lbFactory,
ExternalStoreAccess $extStoreAccess,
WANObjectCache $cache,
- ServiceOptions $options,
- Language $contLang
+ ServiceOptions $options
) {
$options->assertRequiredOptions( self::CONSTRUCTOR_OPTIONS );
$this->extStoreAccess = $extStoreAccess;
$this->cache = $cache;
$this->options = $options;
- $this->contLang = $contLang;
}
/**
$store->setUseExternalStore( $this->options->get( 'DefaultExternalStore' ) !== false );
if ( $this->options->get( 'LegacyEncoding' ) ) {
- $store->setLegacyEncoding( $this->options->get( 'LegacyEncoding' ), $this->contLang );
+ $store->setLegacyEncoding( $this->options->get( 'LegacyEncoding' ) );
}
return $store;