Use default controller class.
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Wed, 27 Jun 2018 21:10:17 +0000 (23:10 +0200)
committerJérôme Benoit <jerome.benoit@piment-noir.org>
Wed, 27 Jun 2018 21:10:17 +0000 (23:10 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
src/Controller/PersonController.php

index c6b0b2c12f7321ef4be4e2f68f2ef45a4d1d4008..5dd8f2322cafe7cb4e0ef3fbb662be26466db59d 100644 (file)
@@ -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(