Esempio n. 1
0
 /**
  * Create a command form to delete a single comment
  *
  * @return DeleteCommentsCommandForm
  */
 private function createDelCommentForm()
 {
     $this->assertPermission('monitoring/command/comment/delete');
     $delCommentForm = new DeleteCommentCommandForm();
     $delCommentForm->setAction(Url::fromPath('monitoring/comment/show')->setParam('comment_id', $this->comment->id));
     $delCommentForm->handleRequest();
     return $delCommentForm;
 }