src/AppBundle/Controller/Admin/AdminCommentController.php 1 location
|
@@ 115-122 (lines=8) @@
|
| 112 |
|
return $this->redirectToRoute('admin_comments'); |
| 113 |
|
} |
| 114 |
|
|
| 115 |
|
private function deleteForm(Comment $comment) |
| 116 |
|
{ |
| 117 |
|
return $this->createFormBuilder() |
| 118 |
|
->setAction($this->generateUrl('admin_comment_delete', array('id' => $comment->getId()))) |
| 119 |
|
->setMethod('DELETE') |
| 120 |
|
->getForm() |
| 121 |
|
; |
| 122 |
|
} |
| 123 |
|
|
| 124 |
|
/** |
| 125 |
|
* @Route (name="count_disables_comments") |
src/AppBundle/Controller/Admin/AdminMenuItemController.php 1 location
|
@@ 119-126 (lines=8) @@
|
| 116 |
|
return $this->redirectToRoute('admin_items'); |
| 117 |
|
} |
| 118 |
|
|
| 119 |
|
private function deleteForm(MenuItem $menuItem) |
| 120 |
|
{ |
| 121 |
|
return $this->createFormBuilder() |
| 122 |
|
->setAction($this->generateUrl('admin_menu_item_delete', |
| 123 |
|
array('id' => $menuItem->getId()))) |
| 124 |
|
->setMethod('DELETE') |
| 125 |
|
->getForm(); |
| 126 |
|
} |
| 127 |
|
} |