Update PortableInfoboxDataService.php

This commit is contained in:
paladox 2019-12-18 18:01:28 +00:00 committed by GitHub
parent 031187069b
commit a01847f0bf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,5 +1,6 @@
<?php
use MediaWiki\MediaWikiServices;
use PortableInfobox\Helpers\PagePropsProxy;
use PortableInfobox\Helpers\PortableInfoboxParsingHelper;
use PortableInfobox\Parser\Nodes\NodeInfobox;
@ -26,7 +27,7 @@ class PortableInfoboxDataService {
$this->title = $title !== null ? $title : new Title();
$this->parsingHelper = new PortableInfoboxParsingHelper();
$this->propsProxy = new PagePropsProxy();
$this->memcached = ObjectCache::getMainWANInstance();
$this->memcached = MediaWikiServices::getInstance()->getMainWANObjectCache();
$this->cachekey = $this->memcached->makeKey(
__CLASS__,
$this->title->getArticleID(),