Allow null as cache parameter (if no cache was found) and for cache removal.

This commit is contained in:
Andreas Fischer 2013-10-22 11:16:08 +02:00
parent dde832b76c
commit c85cc13d1a
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}
}