/** * @RequestMapping(url="json/user_stories",type=json) * @RequestParams(true) */ public function invokeHandler(RequestData $data) { $uid = $data->get("uid"); $stories = new Stories(); $author = new UserDetails($uid); $author->fetchDetails(); return $author; }