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],
];
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);
/**
* @Rest\Post("/person/{id}/localisation")
+ * @Rest\View(StatusCode = Response::HTTP_CREATED)
*/
public function updateLocalisationAction(Request $request)
{
* name = "show_person",
* requirements = {"id"="\d+"}
* )
- * @Rest\View
+ * @Rest\View()
*/
public function showPerson(Person $person)
{
* name = "show_person_by_email",
* requirements = {"email"="\s+"}
* )
- * @Rest\View
+ * @Rest\View()
*/
public function showPersonByEmail(Person $person)
{