public function build($basePath)
    {
        $cache = new PuliResourceCollectionCache($this->cacheDir.'gui-icons.css', $this->debug);

        $resources = $this->resourceFinder->findByType('phlexible/icons');

        if (!$cache->isFresh($resources)) {
            $content = $this->buildIcons($resources, $basePath);

            $cache->write($content);

            if (!$this->debug) {
                $this->compressor->compressFile((string) $cache);
            }
        }

        return new Asset((string) $cache);
    }
public function build($basePath)
    {
        $cache = new PuliResourceCollectionCache($this->cacheDir.'gui-icons.css', $this->debug);

        $resources = $this->resourceFinder->findByType('phlexible/icons');

        if (!$cache->isFresh($resources)) {
            $content = $this->buildIcons($resources, $basePath);

            $cache->write($content);

            if (!$this->debug) {
                $this->compressor->compressFile((string) $cache);
            }
        }

        return new Asset((string) $cache);
    }
public function build ( $ basePath ) { $ cache = new PuliResourceCollectionCache ( $ this -> cacheDir . 'gui-icons.css' , $ this -> debug ) ; $ resources = $ this -> resourceFinder -> findByType ( 'phlexible/icons' ) ; if ( ! $ cache -> isFresh ( $ resources ) ) { $ content = $ this -> buildIcons ( $ resources , $ basePath ) ; $ cache -> write ( $ content ) ; if ( ! $ this -> debug ) { $ this -> compressor -> compressFile ( ( string ) $ cache ) ; } } return new Asset ( ( string ) $ cache ) ; }
Get all Stylesheets for the given section.

@param string $basePath

@return Asset
Get all Stylesheets for the given section .