getStats($id); $this->view->setRenderLevel(View::LEVEL_ACTION_VIEW); $this->view->pick('chapter/live_stats'); $this->view->setVar('stats', $stats); } /** * @Post("/{id:[0-9]+}/bind", name="web.live.bind") */ public function bindAction($id) { $service = new LiveService(); $service->bindUser($id); return $this->jsonSuccess(); } /** * @Post("/{id:[0-9]+}/message", name="web.live.message") */ public function messageAction($id) { $service = new LiveService(); $service->sendMessage($id); return $this->jsonSuccess(); } }