aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Memcache
diff options
context:
space:
mode:
authorGary Kim <gary@garykim.dev>2021-06-29 19:20:33 -0400
committerGary Kim <gary@garykim.dev>2021-06-30 15:28:02 -0400
commitb78f3a57d1d05fb5f81ec8361139b64a3e54d7b0 (patch)
treec2051ba8b5b03b8e4152e7597a8a3ac4457980c6 /lib/private/Memcache
parent6da9ccc9ee1e37932c6580e9831c74bbeeac741b (diff)
downloadnextcloud-server-b78f3a57d1d05fb5f81ec8361139b64a3e54d7b0.tar.gz
nextcloud-server-b78f3a57d1d05fb5f81ec8361139b64a3e54d7b0.zip
Migrate HintException to OCP
Signed-off-by: Gary Kim <gary@garykim.dev>
Diffstat (limited to 'lib/private/Memcache')
-rw-r--r--lib/private/Memcache/Factory.php4
-rw-r--r--lib/private/Memcache/Memcached.php2
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/private/Memcache/Factory.php b/lib/private/Memcache/Factory.php
index 9810f068148..28a84308edc 100644
--- a/lib/private/Memcache/Factory.php
+++ b/lib/private/Memcache/Factory.php
@@ -86,12 +86,12 @@ class Factory implements ICacheFactory {
$missingCacheMessage = 'Memcache {class} not available for {use} cache';
$missingCacheHint = 'Is the matching PHP module installed and enabled?';
if (!class_exists($localCacheClass) || !$localCacheClass::isAvailable()) {
- throw new \OC\HintException(strtr($missingCacheMessage, [
+ throw new \OCP\HintException(strtr($missingCacheMessage, [
'{class}' => $localCacheClass, '{use}' => 'local'
]), $missingCacheHint);
}
if (!class_exists($distributedCacheClass) || !$distributedCacheClass::isAvailable()) {
- throw new \OC\HintException(strtr($missingCacheMessage, [
+ throw new \OCP\HintException(strtr($missingCacheMessage, [
'{class}' => $distributedCacheClass, '{use}' => 'distributed'
]), $missingCacheHint);
}
diff --git a/lib/private/Memcache/Memcached.php b/lib/private/Memcache/Memcached.php
index cd1af031d8a..b3414a7d290 100644
--- a/lib/private/Memcache/Memcached.php
+++ b/lib/private/Memcache/Memcached.php
@@ -31,7 +31,7 @@
*/
namespace OC\Memcache;
-use OC\HintException;
+use OCP\HintException;
use OCP\IMemcache;
class Memcached extends Cache implements IMemcache {