src/AssetManager/Controller/ConsoleController.php
protected function purgeCache($verbose = false)
    {

        if (empty($this->appConfig['asset_manager']['caching'])) {
            return false;
        }

        foreach ($this->appConfig['asset_manager']['caching'] as $configName => $config) {

            if (empty($config['options']['dir'])) {
                continue;
            }
            $this->output(sprintf('Purging %s on "%s"...', $config['options']['dir'], $configName), $verbose);

            $node = $config['options']['dir'];

            if ($configName !== 'default') {
                $node .= '/'.$configName;
            }

            $this->recursiveRemove($node, $verbose);
        }

        return true;
    }
protected function purgeCache($verbose = false)
    {

        if (empty($this->appConfig['asset_manager']['caching'])) {
            return false;
        }

        foreach ($this->appConfig['asset_manager']['caching'] as $configName => $config) {

            if (empty($config['options']['dir'])) {
                continue;
            }
            $this->output(sprintf('Purging %s on "%s"...', $config['options']['dir'], $configName), $verbose);

            $node = $config['options']['dir'];

            if ($configName !== 'default') {
                $node .= '/'.$configName;
            }

            $this->recursiveRemove($node, $verbose);
        }

        return true;
    }
protected function purgeCache ( $ verbose = false ) { if ( empty ( $ this -> appConfig [ 'asset_manager' ] [ 'caching' ] ) ) { return false ; } foreach ( $ this -> appConfig [ 'asset_manager' ] [ 'caching' ] as $ configName => $ config ) { if ( empty ( $ config [ 'options' ] [ 'dir' ] ) ) { continue ; } $ this -> output ( sprintf ( 'Purging %s on "%s"...' , $ config [ 'options' ] [ 'dir' ] , $ configName ) , $ verbose ) ; $ node = $ config [ 'options' ] [ 'dir' ] ; if ( $ configName !== 'default' ) { $ node .= '/' . $ configName ; } $ this -> recursiveRemove ( $ node , $ verbose ) ; } return true ; }
Purges all directories defined as AssetManager cache dir.
@param bool $verbose verbose flag, default false
@return bool false if caching is not set, otherwise true
Purges all directories defined as AssetManager cache dir .