function handleComment($text) { try { $project_id = $this->projectManager->accepted($this->user->id)->id; $response = $this->commentingService->comment($this->user->id, $project_id, $text); $this->sendResponse($response); } catch (Model\CommentingException $e) { Debugger::log($e); } }
function handleComment($text) { try { $response = $this->commentingService->comment($this->user->id, $this->getParameter('id'), $text); $this->sendResponse($response); } catch (CommentingException $e) { Debugger::log($e); } }