Aaron Schulz has uploaded a new change for review. https://gerrit.wikimedia.org/r/243481
Change subject: Updated BagOStuff subclass to implement getWithToken() ...................................................................... Updated BagOStuff subclass to implement getWithToken() Change-Id: I7ca44e6ba7f7c6eb87a1526fd6e27c15107d2b68 --- M includes/Data/BagOStuff/BufferedBagOStuff.php M includes/Data/BagOStuff/LocalBufferedBagOStuff.php 2 files changed, 2 insertions(+), 2 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Flow refs/changes/81/243481/1 diff --git a/includes/Data/BagOStuff/BufferedBagOStuff.php b/includes/Data/BagOStuff/BufferedBagOStuff.php index 63375bf..27c51bc 100644 --- a/includes/Data/BagOStuff/BufferedBagOStuff.php +++ b/includes/Data/BagOStuff/BufferedBagOStuff.php @@ -91,7 +91,7 @@ * @param int $flags [optional] * @return bool|mixed */ - public function get( $key, &$casToken = null, $flags = 0 ) { + protected function getWithToken( $key, &$casToken = null, $flags = 0 ) { if ( !isset( $this->bag[$key] ) ) { // Unknown in local cache = fetch from source cache $value = $this->cache->get( $key, $casToken ); diff --git a/includes/Data/BagOStuff/LocalBufferedBagOStuff.php b/includes/Data/BagOStuff/LocalBufferedBagOStuff.php index 22ae4ac..74b0bc1 100644 --- a/includes/Data/BagOStuff/LocalBufferedBagOStuff.php +++ b/includes/Data/BagOStuff/LocalBufferedBagOStuff.php @@ -18,7 +18,7 @@ return array_key_exists( $key, $this->bag ); } - public function get( $key, &$casToken = null, $flags = 0 ) { + protected function getWithToken( $key, &$casToken = null, $flags = 0 ) { $value = parent::get( $key, $casToken ); $this->bag[$key] = array( $value, 0 ); return $value; -- To view, visit https://gerrit.wikimedia.org/r/243481 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I7ca44e6ba7f7c6eb87a1526fd6e27c15107d2b68 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/extensions/Flow Gerrit-Branch: master Gerrit-Owner: Aaron Schulz <asch...@wikimedia.org> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits