/** * Constructs this cache factory * * @param string $context The current FLOW3 context * @param \TYPO3\CMS\Core\Cache\CacheManager $cacheManager The cache manager */ public function __construct($context, \TYPO3\CMS\Core\Cache\CacheManager $cacheManager) { $this->context = $context; $this->cacheManager = $cacheManager; $this->cacheManager->injectCacheFactory($this); }