Example #1
0
 /**
  * Emits a sync to the given user.
  * @param User $user The user.
  * @param string $type The type of sync.
  * @param string $id The id to use.
  * @param object $context The context to emit.
  */
 public static function emit(User $user, $type, $id, $context)
 {
     try {
         $user->emit('sync', array('type' => $type, 'id' => $id, 'context' => $context));
     } catch (Exception $ex) {
         unset($ex);
     }
 }