diff options
| author | polo <ordipolo@gmx.fr> | 2025-08-27 16:08:29 +0200 |
|---|---|---|
| committer | polo <ordipolo@gmx.fr> | 2025-08-27 16:08:29 +0200 |
| commit | e642cd51d7e8599537f8514bef8d5d16096dddf8 (patch) | |
| tree | b9ad8356fe8b572f6271ef5016d599d0768e9a65 /src/controller/CalendarController.php | |
| parent | 6c28cf85e1b5921e4fb77be230651bc22e83b801 (diff) | |
| download | cms-e642cd51d7e8599537f8514bef8d5d16096dddf8.tar.gz cms-e642cd51d7e8599537f8514bef8d5d16096dddf8.tar.bz2 cms-e642cd51d7e8599537f8514bef8d5d16096dddf8.zip | |
optimisation UserController::existUsers, gestion des $response par le routeur, erreur article déjà supprimé
Diffstat (limited to 'src/controller/CalendarController.php')
| -rw-r--r-- | src/controller/CalendarController.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/controller/CalendarController.php b/src/controller/CalendarController.php index cc37d0f..b60ff11 100644 --- a/src/controller/CalendarController.php +++ b/src/controller/CalendarController.php | |||
| @@ -52,6 +52,7 @@ class CalendarController | |||
| 52 | $entityManager->flush(); | 52 | $entityManager->flush(); |
| 53 | 53 | ||
| 54 | echo json_encode(['success' => true, 'id' => $event->getId()]); | 54 | echo json_encode(['success' => true, 'id' => $event->getId()]); |
| 55 | die; | ||
| 55 | } | 56 | } |
| 56 | static public function updateEvent(array $json, EntityManager $entityManager):void | 57 | static public function updateEvent(array $json, EntityManager $entityManager):void |
| 57 | { | 58 | { |
| @@ -67,6 +68,7 @@ class CalendarController | |||
| 67 | $entityManager->flush(); | 68 | $entityManager->flush(); |
| 68 | 69 | ||
| 69 | echo json_encode(['success' => true]); | 70 | echo json_encode(['success' => true]); |
| 71 | die; | ||
| 70 | } | 72 | } |
| 71 | static public function removeEvent(array $json, EntityManager $entityManager):void | 73 | static public function removeEvent(array $json, EntityManager $entityManager):void |
| 72 | { | 74 | { |
| @@ -75,5 +77,6 @@ class CalendarController | |||
| 75 | $entityManager->flush(); | 77 | $entityManager->flush(); |
| 76 | 78 | ||
| 77 | echo json_encode(['success' => true]); | 79 | echo json_encode(['success' => true]); |
| 80 | die; | ||
| 78 | } | 81 | } |
| 79 | } \ No newline at end of file | 82 | } \ No newline at end of file |
