From: Andreas Fischer Date: Tue, 22 Oct 2013 09:16:08 +0000 (+0200) Subject: Allow null as cache parameter (if no cache was found) and for cache removal. X-Git-Tag: v6.0.0beta3~24^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=c85cc13d1ab926e6b75728ff45b84f4a53a724af;p=nextcloud-server.git Allow null as cache parameter (if no cache was found) and for cache removal. --- diff --git a/lib/autoloader.php b/lib/autoloader.php index 3228ca29b22..3451f799e18 100644 --- a/lib/autoloader.php +++ b/lib/autoloader.php @@ -150,7 +150,7 @@ class Autoloader { * @brief Sets the optional low-latency cache for class to path mapping. * @param \OC\Memcache\Cache $memoryCache Instance of memory cache. */ - public function setMemoryCache(\OC\Memcache\Cache $memoryCache) { + public function setMemoryCache(\OC\Memcache\Cache $memoryCache = null) { $this->memoryCache = $memoryCache; } }