}
public function execute() {
- global $wgLocalisationCacheConf;
+ global $wgLocalisationCacheConf, $wgCacheDirectory;
$force = $this->hasOption( 'force' );
$threads = $this->getOption( 'threads', 1 );
// XXX Copy-pasted from ServiceWiring.php. Do we need a factory for this one caller?
$lc = new LocalisationCacheBulkLoad(
new ServiceOptions(
- LocalisationCache::$constructorOptions,
+ LocalisationCache::CONSTRUCTOR_OPTIONS,
$conf,
MediaWikiServices::getInstance()->getMainConfig()
),
- new LCStoreDB( [] ),
+ LocalisationCache::getStoreFromConf( $conf, $wgCacheDirectory ),
LoggerFactory::getInstance( 'localisation' ),
[ function () {
MediaWikiServices::getInstance()->getResourceLoader()