From 93d2167ca60d620eb1325be04e7a3d8a885f5587 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Mon, 10 Nov 2014 09:32:46 -0800 Subject: [PATCH] Moved MapCacheLRU to libs/ Change-Id: Icb820787afe7298dd3124f5168d3efff19e53ab6 --- includes/AutoLoader.php | 2 +- includes/{cache => libs}/MapCacheLRU.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) rename includes/{cache => libs}/MapCacheLRU.php (95%) diff --git a/includes/AutoLoader.php b/includes/AutoLoader.php index 9f9deb7557..af86c99f4e 100644 --- a/includes/AutoLoader.php +++ b/includes/AutoLoader.php @@ -346,7 +346,7 @@ $wgAutoloadLocalClasses = array( 'LinkCache' => 'includes/cache/LinkCache.php', 'LocalisationCache' => 'includes/cache/LocalisationCache.php', 'LocalisationCacheBulkLoad' => 'includes/cache/LocalisationCache.php', - 'MapCacheLRU' => 'includes/cache/MapCacheLRU.php', + 'MapCacheLRU' => 'includes/libs/MapCacheLRU.php', 'MessageCache' => 'includes/cache/MessageCache.php', 'ObjectFileCache' => 'includes/cache/ObjectFileCache.php', 'ResourceFileCache' => 'includes/cache/ResourceFileCache.php', diff --git a/includes/cache/MapCacheLRU.php b/includes/libs/MapCacheLRU.php similarity index 95% rename from includes/cache/MapCacheLRU.php rename to includes/libs/MapCacheLRU.php index 95e3af769e..2a7ee2a671 100644 --- a/includes/cache/MapCacheLRU.php +++ b/includes/libs/MapCacheLRU.php @@ -38,11 +38,11 @@ class MapCacheLRU { /** * @param int $maxKeys Maximum number of entries allowed (min 1). - * @throws MWException When $maxCacheKeys is not an int or =< 0. + * @throws Exception When $maxCacheKeys is not an int or =< 0. */ public function __construct( $maxKeys ) { if ( !is_int( $maxKeys ) || $maxKeys < 1 ) { - throw new MWException( __METHOD__ . " must be given an integer and >= 1" ); + throw new Exception( __METHOD__ . " must be given an integer and >= 1" ); } $this->maxCacheKeys = $maxKeys; } -- 2.20.1