mirror of
https://gitlab.aliens-lyon.fr/encartes/backend.git
synced 2026-03-17 14:41:03 +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
|
||||
{
|
||||
$floor = $rep->findFloorById($id);
|
||||
@ -94,11 +94,12 @@ class MapApiController extends AbstractController
|
||||
return $listEdits;
|
||||
}
|
||||
|
||||
#[Route('/map/api/set_edition')]
|
||||
public function setEdition(PlaceRepository $rep, string $mode, int $idPlace, string $value): bool
|
||||
#[Route('/map/api/create_edition')]
|
||||
public function createEdition(EditionRepository $Erep, PlaceRepository $Prep, string $mode, int $idPlace, string $value): bool
|
||||
{
|
||||
$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')]
|
||||
|
||||
@ -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);
|
||||
if ($place==null) { return null; }
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user