From 138d431786aff9f62e6278c47dd16aa7b0497fbf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Fri, 17 Jun 2022 17:10:10 +0200 Subject: [PATCH] fix duplication action in controller --- .../Controller/CalendarController.php | 22 ------------------- 1 file changed, 22 deletions(-) diff --git a/src/Bundle/ChillCalendarBundle/Controller/CalendarController.php b/src/Bundle/ChillCalendarBundle/Controller/CalendarController.php index 110d07179..880c1b7da 100644 --- a/src/Bundle/ChillCalendarBundle/Controller/CalendarController.php +++ b/src/Bundle/ChillCalendarBundle/Controller/CalendarController.php @@ -243,28 +243,6 @@ class CalendarController extends AbstractController ]); } - /** - * @Route("/{_locale}/calendar/calendar/my", name="chill_calendar_calendar_list_my") - */ - public function myCalendar(Request $request): Response - { - $this->denyAccessUnlessGranted('ROLE_USER'); - - if (!$this->getUser() instanceof User) { - throw new UnauthorizedHttpException('you are not an user'); - } - - if (!$this->remoteCalendarConnector->isReady()) { - return $this->remoteCalendarConnector->getMakeReadyResponse($request->getUri()); - } - - $view = '@ChillCalendar/Calendar/listByUser.html.twig'; - - return $this->render($view, [ - 'user' => $this->getUser(), - ]); - } - /** * Create a new calendar item. *