src/console/controllers/CacheController.php
public function actionFlushAssets()
    {
        $paths = ArrayHelper::getValue(\Yii::$app->cms->tmpFolderScheme, 'assets');
        $this->stdout("Clear assets directories\n", Console::FG_YELLOW);

        if ($paths) {
            foreach ($paths as $path) {
                $realPath = \Yii::getAlias($path);
                $this->stdout("\tClear asset directory: {$realPath}\n");
                FileHelper::removeDirectory(\Yii::getAlias($path));
                FileHelper::createDirectory(\Yii::getAlias($path));
            }
        }
    }
public function actionFlushAssets()
    {
        $paths = ArrayHelper::getValue(\Yii::$app->cms->tmpFolderScheme, 'assets');
        $this->stdout("Clear assets directories\n", Console::FG_YELLOW);

        if ($paths) {
            foreach ($paths as $path) {
                $realPath = \Yii::getAlias($path);
                $this->stdout("\tClear asset directory: {$realPath}\n");
                FileHelper::removeDirectory(\Yii::getAlias($path));
                FileHelper::createDirectory(\Yii::getAlias($path));
            }
        }
    }
public function actionFlushAssets ( ) { $ paths = ArrayHelper :: getValue ( \ Yii :: $ app -> cms -> tmpFolderScheme , 'assets' ) ; $ this -> stdout ( "Clear assets directories\n" , Console :: FG_YELLOW ) ; if ( $ paths ) { foreach ( $ paths as $ path ) { $ realPath = \ Yii :: getAlias ( $ path ) ; $ this -> stdout ( "\tClear asset directory: {$realPath}\n" ) ; FileHelper :: removeDirectory ( \ Yii :: getAlias ( $ path ) ) ; FileHelper :: createDirectory ( \ Yii :: getAlias ( $ path ) ) ; } } }
Clear asstes directories
Clear asstes directories