X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fcontext%2FContextSource.php;h=b61787169c799111c532294dd123b7aed8fecd82;hb=724b2cf91205cc1b09c5677a8c01e34978717d4a;hp=911ecdd5ab9be309c0228bd2bb22e4705028afb2;hpb=e3bd13db0c285f312e31bb1b7271af4628cca80c;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/context/ContextSource.php b/includes/context/ContextSource.php index 911ecdd5ab..b61787169c 100644 --- a/includes/context/ContextSource.php +++ b/includes/context/ContextSource.php @@ -18,6 +18,8 @@ * @author Happy-melon * @file */ +use Liuggio\StatsdClient\Factory\StatsdDataFactory; +use MediaWiki\MediaWikiServices; /** * The simplest way of implementing IContextSource is to hold a RequestContext as a @@ -165,8 +167,10 @@ abstract class ContextSource implements IContextSource { /** * Get the Stats object * + * @deprecated since 1.27 use a StatsdDataFactory from MediaWikiServices (preferably injected) + * * @since 1.25 - * @return BufferingStatsdDataFactory + * @return StatsdDataFactory */ public function getStats() { return $this->getContext()->getStats();