Skip to content

Instantly share code, notes, and snippets.

@AparnaKarve
Created July 3, 2012 17:19
Show Gist options
  • Save AparnaKarve/3041145 to your computer and use it in GitHub Desktop.
Save AparnaKarve/3041145 to your computer and use it in GitHub Desktop.
$userid = $post['Post']['user_id'];
$userDetails = withConsole(function () use ($userid) {
$queryOpts = new Serv_QueryOptions();
$queryOpts->limit = 1;
$user = withSecurityGateway(function($gw) use ($queryOpts, $userid) {
return thriftUser2phpArray($gw->findById($userid));
});
}
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment