Exemplo n.º 1
0
 /**
  * @param $uid
  * @return array
  */
 public function updateFiles($uid)
 {
     Craft::log('Starting to update files.', LogLevel::Info, true);
     try {
         $updater = new Updater();
         $updater->updateFiles($uid);
         Craft::log('Finished updating files.', LogLevel::Info, true);
         return array('success' => true);
     } catch (\Exception $e) {
         return array('success' => false, 'message' => $e->getMessage());
     }
 }