public function add(AssetInterface $asset) { if (!in_array($asset->getFile(), $this->files)) { array_push($this->assets, $asset); $this->files[] = $asset->getFile(); } }
protected function toUrl(AssetInterface $asset) { $url = $asset->getFile(); return $this->urlDecorator ? $this->urlDecorator->decorate($url) : $url; }