mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-27 15:50:29 +00:00
Merge "Use statslib instead of statsd in DirectParsoidClient"
This commit is contained in:
commit
03f8d2b916
|
@ -108,10 +108,8 @@ class DirectParsoidClient implements ParsoidClient {
|
||||||
$pageLanguage
|
$pageLanguage
|
||||||
);
|
);
|
||||||
|
|
||||||
$metrics = MediaWikiServices::getInstance()->getParsoidSiteConfig()->metrics();
|
$statsFactory = MediaWikiServices::getInstance()->getParsoidSiteConfig()->prefixedStatsFactory();
|
||||||
if ( $metrics ) {
|
$helper->setMetrics( $statsFactory );
|
||||||
$helper->setMetrics( $metrics );
|
|
||||||
}
|
|
||||||
|
|
||||||
return $helper;
|
return $helper;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue