Ejemplo n.º 1
0
 protected function run($argument)
 {
     $remote = $argument['remote'];
     $remoteId = $argument['remoteId'];
     $token = $argument['token'];
     $action = $argument['action'];
     $data = json_decode($argument['data'], true);
     $try = (int) $argument['try'] + 1;
     $result = $this->notifications->sendUpdateToRemote($remote, $remoteId, $token, $action, $data, $try);
     if ($result === true || $try > $this->maxTry) {
         $this->retainJob = false;
     }
 }