コード例 #1
0
ファイル: AssetCache.php プロジェクト: GitHubUser4234/core
 public function run(IOutput $output)
 {
     if (!\OC_Template::isAssetPipelineEnabled()) {
         $output->info('Asset pipeline disabled -> nothing to do');
         return;
     }
     $assetDir = \OC::$server->getConfig()->getSystemValue('assetdirectory', \OC::$SERVERROOT) . '/assets';
     \OC_Helper::rmdirr($assetDir, false);
     $output->info('Asset cache cleared.');
 }
コード例 #2
0
ファイル: assetcache.php プロジェクト: Kevin-ZK/vaneDisk
 public function run()
 {
     if (!\OC_Template::isAssetPipelineEnabled()) {
         $this->emit('\\OC\\Repair', 'info', array('Asset pipeline disabled -> nothing to do'));
         return;
     }
     $assetDir = \OC::$server->getConfig()->getSystemValue('assetdirectory', \OC::$SERVERROOT) . '/assets';
     \OC_Helper::rmdirr($assetDir, false);
     $this->emit('\\OC\\Repair', 'info', array('Asset cache cleared.'));
 }
コード例 #3
0
ファイル: assetcache.php プロジェクト: Romua1d/core
 public function run()
 {
     if (!\OC_Template::isAssetPipelineEnabled()) {
         $this->emit('\\OC\\Repair', 'info', array('Asset pipeline disabled -> nothing to do'));
         return;
     }
     $assetDir = \OC::$SERVERROOT . '/assets';
     \OC_Helper::rmdirr($assetDir, false);
     $this->emit('\\OC\\Repair', 'info', array('Asset cache cleared.'));
 }