* @author Aaron Schulz
*/
use \MediaWiki\Logger\LoggerFactory;
+use MediaWiki\MediaWikiServices;
/**
* Class to handle file backend registration
'streamMimeFunc' => [ 'StreamFile', 'contentTypeFromPath' ],
'tmpDirectory' => wfTempDir(),
'statusWrapper' => [ 'Status', 'wrap' ],
- 'wanCache' => ObjectCache::getMainWANInstance(),
+ 'wanCache' => MediaWikiServices::getInstance()->getMainWANObjectCache(),
'srvCache' => ObjectCache::getLocalServerInstance( 'hash' ),
'logger' => LoggerFactory::getInstance( 'FileOperation' ),
'profiler' => Profiler::instance()