nestedContentFilter = $nestedContentFilter; } /** * Gets the cache to use * * @return Zend_Cache_Frontend */ protected function getCache() { return Injector::inst()->get( CacheInterface::class . '.VersionFeedController' ); } /** * Evaluates the result of the given callback * * @param string $key Unique key for this * @param callable $callback Callback for evaluating the content * @return mixed Result of $callback() */ public function getContent($key, $callback) { if($this->nestedContentFilter) { return $this->nestedContentFilter->getContent($key, $callback); } else { return call_user_func($callback); } } }