/** * @return CacheProxyStrategy */ protected function buildCacheStrategy() { $this->cache = new CacheSpy(); $cacheStrategy = new CacheProxyStrategy(); $cacheStrategy->setCache($this->cache); $this->proxyStrategyBagFactory->setCacheStrategy($cacheStrategy); $this->proxyStrategyRequestFactory->setCacheProxyStrategyRequestBuilder(new CacheProxyStrategyRequestBuilderImpl()); }
/** * @return CacheProxyStrategy */ protected function buildCacheStrategy() { $cacheStrategy = new CacheProxyStrategy(); $cacheStrategy->setCache($this->cache); return $cacheStrategy; }