Exemple #1
0
 /**
  * Sync assets to CDN
  */
 public function sync()
 {
     \Cli::write("Syncing user files...");
     Storage::syncFileFields();
     \Cli::write("Syncing static assets...");
     Storage::syncAssets();
     \Cli::write("Done!", 'green');
 }
Exemple #2
0
 /**
  * Syncs the files table with file and image fields
  */
 public function action_sync_files_table()
 {
     \CMF\Storage::syncFileFields();
     $this->heading = 'All files were synced';
     $this->template = 'admin/generic.twig';
 }