ヤミRoot VoidGate
User / IP
:
216.73.216.211
Host / Server
:
146.88.233.70 / dev.loger.cm
System
:
Linux hybrid1120.fr.ns.planethoster.net 3.10.0-957.21.2.el7.x86_64 #1 SMP Wed Jun 5 14:26:44 UTC 2019 x86_64
Command
|
Upload
|
Create
Mass Deface
|
Jumping
|
Symlink
|
Reverse Shell
Ping
|
Port Scan
|
DNS Lookup
|
Whois
|
Header
|
cURL
:
/
home
/
itrave
/
api
/
vendor
/
sensio
/
generator-bundle
/
Resources
/
skeleton
/
crud
/
actions
/
Viewing: delete.php.twig
/** {% block phpdoc_method_header %} * Deletes a {{ entity_singularized }} entity. {% endblock phpdoc_method_header %} * {% block phpdoc_method_annotations %} {% if 'annotation' == format %} * @Route("/{{ '{' ~ identifier ~ '}' }}", name="{{ route_name_prefix }}_delete") * @Method("DELETE") {% endif %} {% endblock phpdoc_method_annotations %} */ {% block method_definition %} public function deleteAction(Request $request, {{ entity_class }} ${{ entity_singularized }}) {% endblock method_definition %} { {% block method_body %} $form = $this->createDeleteForm(${{ entity_singularized }}); $form->handleRequest($request); if ($form->isSubmitted() && $form->isValid()) { $em = $this->getDoctrine()->getManager(); $em->remove(${{ entity_singularized }}); $em->flush(); } {% endblock method_body %} {% block method_return %} return $this->redirectToRoute('{{ route_name_prefix }}_index'); {% endblock method_return %} } {% block form %} /** * Creates a form to delete a {{ entity_singularized }} entity. * * @param {{ entity_class }} ${{ entity_singularized }} The {{ entity_singularized }} entity * * @return \Symfony\Component\Form\Form The form */ private function createDeleteForm({{ entity_class }} ${{ entity_singularized }}) { return $this->createFormBuilder() ->setAction($this->generateUrl('{{ route_name_prefix }}_delete', array('{{ identifier }}' => ${{ entity_singularized }}->get{{ identifier|capitalize }}()))) ->setMethod('DELETE') ->getForm() ; } {% endblock form %}
Coded With 💗 by
0x6ick