From: Jérôme Benoit Date: Wed, 27 Jun 2018 21:10:17 +0000 (+0200) Subject: Use default controller class. X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=1d9d8d510cc147f9a71d4478c426bf7236ff1fb2;p=Project_proches_de_moi-server.git Use default controller class. Signed-off-by: Jérôme Benoit --- diff --git a/src/Controller/PersonController.php b/src/Controller/PersonController.php index c6b0b2c..5dd8f23 100644 --- a/src/Controller/PersonController.php +++ b/src/Controller/PersonController.php @@ -2,7 +2,8 @@ namespace App\Controller; use App\Entity\Person; -use FOS\RestBundle\Controller\FOSRestController; +use Symfony\Bundle\FrameworkBundle\Controller\Controller; +#use FOS\RestBundle\Controller\FOSRestController; use FOS\RestBundle\Controller\Annotations as Rest; use FOS\RestBundle\View\ViewHandler; use FOS\RestBundle\View\View; @@ -11,7 +12,7 @@ use Symfony\Component\HttpFoundation\Request; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Generator\UrlGeneratorInterface; -class PersonController extends FOSRestController +class PersonController extends Controller { /** * @Rest\Post(