/** * 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); } }
/** * 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); }