DotsUnited\BundleFu\Bundle::getCssBundlePath PHP 메소드

getCssBundlePath() 공개 메소드

Get css bundle path.
public getCssBundlePath ( ) : string
리턴 string
    public function getCssBundlePath()
    {
        $cacheDir = $this->getCssCachePath();
        if ($this->isRelativePath($cacheDir)) {
            $cacheDir = $this->getDocRoot() . DIRECTORY_SEPARATOR . $cacheDir;
        }
        $name = $this->getName();
        if (null === $name) {
            $name = sprintf('bundle_%s', $this->getCssFileList()->getHash());
        } elseif (strpos($name, '%s') !== false) {
            $name = sprintf($name, $this->getCssFileList()->getHash());
        }
        return sprintf("%s%s%s.css", $cacheDir, DIRECTORY_SEPARATOR, $name);
    }