コード例 #1
0
ファイル: VersioningMiddleware.php プロジェクト: kriskbx/wyn
 /**
  * After process.
  *
  * @param SyncContract $sync
  */
 public function afterProcess(SyncContract &$sync)
 {
     // Get output
     $output = $sync->getOutputHelper();
     $outputHandler = $sync->getOutput();
     // Local or remote?
     if ($outputHandler instanceof LocalOutput) {
         $this->commit($output);
     }
 }
コード例 #2
0
ファイル: EncryptionMiddleware.php プロジェクト: kriskbx/wyn
 /**
  * After process.
  *
  * @param SyncContract $sync
  */
 public function afterProcess(SyncContract &$sync)
 {
     // Get output & console
     $console = $sync->getOutputHelper();
     $output = $sync->getOutput();
     // Display some stuff
     $console->out(SyncOutput::MISC_LINE_BREAK);
     $console->out(SyncOutput::ENC_START_ENCRYPTION);
     $console->out(SyncOutput::MISC_LINE_BREAK);
     // Encrypt
     $this->encrypt($output, $output, $console);
     $console->out(SyncOutput::MISC_LINE_BREAK);
 }