AssetCompress\Shell\AssetCompressShell::_clearBuilds PHP Метод

_clearBuilds() защищенный Метод

clear the builds for a specific extension.
protected _clearBuilds ( ) : void
Результат void
    protected function _clearBuilds()
    {
        $themes = (array) $this->config->general('themes');
        if ($themes) {
            $this->config->theme($themes[0]);
        }
        $assets = $this->factory->assetCollection();
        if (count($assets) === 0) {
            $this->err('No build targets defined, skipping');
            return;
        }
        $targets = array_map(function ($target) {
            return $target->name();
        }, iterator_to_array($assets));
        $this->_clearPath(CACHE . 'asset_compress' . DS, $themes, $targets);
        $this->_clearPath($this->config->cachePath('js'), $themes, $targets);
        $this->_clearPath($this->config->cachePath('css'), $themes, $targets);
    }