mirror of
https://gitlab.aliens-lyon.fr/encartes/backend.git
synced 2026-03-17 22:51:04 +01:00
Rename createEdition
This commit is contained in:
parent
626a3de5e4
commit
41cc7a3b9c
@ -21,7 +21,7 @@ class MapApiController extends AbstractController
|
|||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
#[Route('/map/api/get_floor')]
|
#[Route(' ')]
|
||||||
public function get_floor(FloorRepository $rep, int $id, string $representation): JsonResponse
|
public function get_floor(FloorRepository $rep, int $id, string $representation): JsonResponse
|
||||||
{
|
{
|
||||||
$floor = $rep->findFloorById($id);
|
$floor = $rep->findFloorById($id);
|
||||||
@ -94,11 +94,12 @@ class MapApiController extends AbstractController
|
|||||||
return $listEdits;
|
return $listEdits;
|
||||||
}
|
}
|
||||||
|
|
||||||
#[Route('/map/api/set_edition')]
|
#[Route('/map/api/create_edition')]
|
||||||
public function setEdition(PlaceRepository $rep, string $mode, int $idPlace, string $value): bool
|
public function createEdition(EditionRepository $Erep, PlaceRepository $Prep, string $mode, int $idPlace, string $value): bool
|
||||||
{
|
{
|
||||||
$edit = new Edition();
|
$edit = new Edition();
|
||||||
return $edit->setEdition($rep, $mode, $idPlace, $value);
|
$edit->createEdition($Prep, $mode, $idPlace, $value);
|
||||||
|
return $Erep->add($edit);
|
||||||
}
|
}
|
||||||
|
|
||||||
#[Route('/map/api/remove_edition')]
|
#[Route('/map/api/remove_edition')]
|
||||||
|
|||||||
@ -71,7 +71,7 @@ class Edition
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public function setEdition(PlaceRepository $rep, string $mode, int $id, string $val): self
|
public function createEdition(PlaceRepository $rep, string $mode, int $id, string $val): self
|
||||||
{
|
{
|
||||||
$place = $rep->findPlaceById($id);
|
$place = $rep->findPlaceById($id);
|
||||||
if ($place==null) { return null; }
|
if ($place==null) { return null; }
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user