summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
7386092)
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
Doctrine\Bundle\DoctrineCacheBundle\DoctrineCacheBundle::class => ['all' => true],
Doctrine\Bundle\DoctrineBundle\DoctrineBundle::class => ['all' => true],
Sensio\Bundle\FrameworkExtraBundle\SensioFrameworkExtraBundle::class => ['all' => true],
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],
];
Symfony\Bundle\SecurityBundle\SecurityBundle::class => ['all' => true],
];
public function updatePersonAction(Request $request)
{
$em = $this->getDoctrine()->getManager();
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);
if (empty($place)) {
return new JsonResponse(['message' => 'Person not found'], Response::HTTP_NOT_FOUND);
/**
* @Rest\Post("/person/{id}/localisation")
/**
* @Rest\Post("/person/{id}/localisation")
+ * @Rest\View(StatusCode = Response::HTTP_CREATED)
*/
public function updateLocalisationAction(Request $request)
{
*/
public function updateLocalisationAction(Request $request)
{
* name = "show_person",
* requirements = {"id"="\d+"}
* )
* name = "show_person",
* requirements = {"id"="\d+"}
* )
*/
public function showPerson(Person $person)
{
*/
public function showPerson(Person $person)
{
* name = "show_person_by_email",
* requirements = {"email"="\s+"}
* )
* name = "show_person_by_email",
* requirements = {"email"="\s+"}
* )
*/
public function showPersonByEmail(Person $person)
{
*/
public function showPersonByEmail(Person $person)
{