* @file
*/
use Liuggio\StatsdClient\Factory\StatsdDataFactory;
+use MediaWiki\MediaWikiServices;
/**
* The simplest way of implementing IContextSource is to hold a RequestContext as a
* @return StatsdDataFactory
*/
public function getStats() {
- return $this->getContext()->getStats();
+ return MediaWikiServices::getInstance()->getStatsdDataFactory();
}
/**