From: Jérôme Benoit Date: Wed, 27 Jun 2018 14:24:54 +0000 (+0200) Subject: Typo fixes. X-Git-Url: https://git.piment-noir.org/?p=Project_proches_de_moi-server.git;a=commitdiff_plain;h=43f58db4196ece08549c1adafb2ca0aa1ad02cf1 Typo fixes. Signed-off-by: Jérôme Benoit --- diff --git a/config/bundles.php b/config/bundles.php index e6cf935..17b973d 100644 --- a/config/bundles.php +++ b/config/bundles.php @@ -7,6 +7,6 @@ return [ Doctrine\Bundle\DoctrineCacheBundle\DoctrineCacheBundle::class => ['all' => true], Doctrine\Bundle\DoctrineBundle\DoctrineBundle::class => ['all' => true], Sensio\Bundle\FrameworkExtraBundle\SensioFrameworkExtraBundle::class => ['all' => true], - Symfony\Bundle\WebServerBundle\WebServerBundle::class => ['dev' => true], + Symfony\Bundle\WebServerBundle\WebServerBundle::class => ['all' => true], Symfony\Bundle\SecurityBundle\SecurityBundle::class => ['all' => true], ]; diff --git a/src/Controller/PersonController.php b/src/Controller/PersonController.php index 1a68213..43b9078 100644 --- a/src/Controller/PersonController.php +++ b/src/Controller/PersonController.php @@ -54,7 +54,7 @@ class PersonController extends FOSRestController public function updatePersonAction(Request $request) { $em = $this->getDoctrine()->getManager(); - $person = $em->getRepository('App:Person')->find($request->get('id')); + $person = $em->getRepository('App::Person')->find($request->get('id')); if (empty($place)) { return new JsonResponse(['message' => 'Person not found'], Response::HTTP_NOT_FOUND); @@ -80,6 +80,7 @@ class PersonController extends FOSRestController /** * @Rest\Post("/person/{id}/localisation") + * @Rest\View(StatusCode = Response::HTTP_CREATED) */ public function updateLocalisationAction(Request $request) { @@ -101,7 +102,7 @@ class PersonController extends FOSRestController * name = "show_person", * requirements = {"id"="\d+"} * ) - * @Rest\View + * @Rest\View() */ public function showPerson(Person $person) { @@ -114,7 +115,7 @@ class PersonController extends FOSRestController * name = "show_person_by_email", * requirements = {"email"="\s+"} * ) - * @Rest\View + * @Rest\View() */ public function showPersonByEmail(Person $person) {