Пример #1
0
 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
 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
 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.'));
 }