X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fcontext%2FIContextSource.php;h=ccefc72f1b3480e8c08370b152113843965050f8;hb=386c6ae9c5a5e9fe133a333b653b4d080dff1718;hp=58bf5d985ec2edb5a689a9ca5f9039847c60e3a9;hpb=e3a3f2293b4401772508456fc83afc94ea179b31;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/context/IContextSource.php b/includes/context/IContextSource.php index 58bf5d985e..ccefc72f1b 100644 --- a/includes/context/IContextSource.php +++ b/includes/context/IContextSource.php @@ -21,6 +21,8 @@ * @file */ +use Liuggio\StatsdClient\Factory\StatsdDataFactory; + /** * Interface for objects which can provide a MediaWiki context on request * @@ -126,11 +128,21 @@ interface 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(); + /** + * Get the timing object + * + * @since 1.27 + * @return Timing + */ + public function getTiming(); + /** * Get a Message object with context set. See wfMessage for parameters. *