コード例 #1
0
ファイル: HomepagePresenter.php プロジェクト: vitush93/dba
 function handleReply($text, $comment)
 {
     try {
         $project_id = $this->projectManager->accepted($this->user->id)->id;
         $response = $this->commentingService->reply($this->user->id, $project_id, $text, $comment);
         $this->sendResponse($response);
     } catch (Model\CommentingException $e) {
         Debugger::log($e);
     }
 }
コード例 #2
0
ファイル: AdminPresenter.php プロジェクト: vitush93/dba
 function handleReply($text, $comment)
 {
     try {
         $response = $this->commentingService->reply($this->user->id, $this->getParameter('id'), $text, $comment);
         $this->sendResponse($response);
     } catch (CommentingException $e) {
         Debugger::log($e);
     }
 }