From d047a9c6046ebf6bc80f3d3d6fe9d45b1c6bc5ed Mon Sep 17 00:00:00 2001 From: addshore Date: Sat, 2 Apr 2016 12:24:59 +0300 Subject: [PATCH] Introduce StatsdAwareInterface Change-Id: Iac343e4b448d9af852b4c479c35a9ff60359b6d5 --- autoload.php | 1 + includes/WatchedItemStore.php | 2 +- includes/libs/stats/StatsdAwareInterface.php | 21 ++++++++++++++++++++ 3 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 includes/libs/stats/StatsdAwareInterface.php diff --git a/autoload.php b/autoload.php index df38b3a2a2..0ecca6f4a1 100644 --- a/autoload.php +++ b/autoload.php @@ -1267,6 +1267,7 @@ $wgAutoloadLocalClasses = [ 'SquidPurgeClientPool' => __DIR__ . '/includes/clientpool/SquidPurgeClientPool.php', 'SquidUpdate' => __DIR__ . '/includes/deferred/CdnCacheUpdate.php', 'SrConverter' => __DIR__ . '/languages/classes/LanguageSr.php', + 'StatsdAwareInterface' => __DIR__ . '/includes/libs/stats/StatsdAwareInterface.php', 'StatsOutput' => __DIR__ . '/maintenance/language/StatOutputs.php', 'Status' => __DIR__ . '/includes/Status.php', 'StatusValue' => __DIR__ . '/includes/libs/StatusValue.php', diff --git a/includes/WatchedItemStore.php b/includes/WatchedItemStore.php index 2aa294b639..8ae7932be0 100644 --- a/includes/WatchedItemStore.php +++ b/includes/WatchedItemStore.php @@ -11,7 +11,7 @@ use Wikimedia\Assert\Assert; * * @since 1.27 */ -class WatchedItemStore { +class WatchedItemStore implements StatsdAwareInterface { const SORT_DESC = 'DESC'; const SORT_ASC = 'ASC'; diff --git a/includes/libs/stats/StatsdAwareInterface.php b/includes/libs/stats/StatsdAwareInterface.php new file mode 100644 index 0000000000..5151b2689a --- /dev/null +++ b/includes/libs/stats/StatsdAwareInterface.php @@ -0,0 +1,21 @@ +