Lines Matching refs:asset

25     private $asset;  variable in Assetic\\Asset\\AssetCache
28 public function __construct(AssetInterface $asset, CacheInterface $cache) argument
30 $this->asset = $asset;
36 $this->asset->ensureFilter($filter);
41 return $this->asset->getFilters();
46 $this->asset->clearFilters();
51 $cacheKey = self::getCacheKey($this->asset, $additionalFilter, 'load');
53 $this->asset->setContent($this->cache->get($cacheKey));
58 $this->asset->load($additionalFilter);
59 $this->cache->set($cacheKey, $this->asset->getContent());
64 $cacheKey = self::getCacheKey($this->asset, $additionalFilter, 'dump');
69 $content = $this->asset->dump($additionalFilter);
77 return $this->asset->getContent();
82 $this->asset->setContent($content);
87 return $this->asset->getSourceRoot();
92 return $this->asset->getSourcePath();
97 return $this->asset->getSourceDirectory();
102 return $this->asset->getTargetPath();
107 $this->asset->setTargetPath($targetPath);
112 return $this->asset->getLastModified();
117 return $this->asset->getVars();
122 $this->asset->setValues($values);
127 return $this->asset->getValues();
141 * @param AssetInterface $asset The asset
147 …private static function getCacheKey(AssetInterface $asset, FilterInterface $additionalFilter = nul… argument
150 $asset = clone $asset;
151 $asset->ensureFilter($additionalFilter);
154 $cacheKey = $asset->getSourceRoot();
155 $cacheKey .= $asset->getSourcePath();
156 $cacheKey .= $asset->getTargetPath();
157 $cacheKey .= $asset->getLastModified();
159 foreach ($asset->getFilters() as $filter) {
167 if ($values = $asset->getValues()) {