AsseticBundle\View\ViewHelperStrategy::setupAsset PHP Method

setupAsset() public method

public setupAsset ( Assetic\Asset\AssetInterface $asset )
$asset Assetic\Asset\AssetInterface
    public function setupAsset(AssetInterface $asset)
    {
        if ($this->isDebug() && !$this->isCombine() && $asset instanceof AssetCollection) {
            // Move assets as single instance not as a collection
            foreach ($asset as $value) {
                /** @var AssetCollection $value */
                $path = $this->getBaseUrl() . $this->getBasePath() . $value->getTargetPath();
                $this->helper($path);
            }
        } else {
            $path = $this->getBaseUrl() . $this->getBasePath() . $asset->getTargetPath();
            $this->helper($path);
        }
    }