/** * injects the Cache Manager * * @return Cache The cache object or null */ public function setCacheManager() { $config = $this->loadConfig(); $cache = CacheFactory::get($config['cache']['type']); $cache->setPrefix($config['cache']['prefix']); return $cache; }