private function stubCacheEntry($content, $file, $time, $files = null) { $list = is_null($files) ? [$file => $time] : $files; $entry = new CacheEntry($content, $list, $time); $this->cache->setHas($file, $time); $this->cache->setEntry($file, $entry->serialize()); return $entry; }
private function setCache($iterator, $value, $files) { $key = $this->target->generateCacheKey($iterator); $entry = new CacheBinderEntry($value, $files, new DateTime()); $entry->setMimeType('text/css'); $entry->setContext(new Context()); $this->cache->setHas($key); $this->cache->setEntry($key, $entry->serialize()); }