From 1d9d8d510cc147f9a71d4478c426bf7236ff1fb2 Mon Sep 17 00:00:00 2001
From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= <jerome.benoit@piment-noir.org>
Date: Wed, 27 Jun 2018 23:10:17 +0200
Subject: [PATCH] Use default controller class.
MIME-Version: 1.0
Content-Type: text/plain; charset=utf8
Content-Transfer-Encoding: 8bit

Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
---
 src/Controller/PersonController.php | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

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(
-- 
2.43.0