示例#1
0
 /**
  * Before process.
  *
  * @param SyncContract $sync
  */
 public function beforeProcess(SyncContract &$sync)
 {
     // Get settings and output
     $settings = $sync->getSettings();
     $output = $sync->getOutputHelper();
     $outputHandler = $sync->getOutput();
     // Local or remote?
     if ($outputHandler instanceof LocalOutput) {
         $this->local($sync, $output, $outputHandler, $settings);
     } else {
         $this->remote($sync, $output, $settings);
     }
 }