X-Git-Url: https://git.rapsys.eu/airbundle/blobdiff_plain/f2e474fce42a32fbff1af94255d274ff0b1c2d43..49e39d805a089a8065015defa6e6fee22be4fcdb:/Controller/DanceController.php?ds=sidebyside diff --git a/Controller/DanceController.php b/Controller/DanceController.php index 7643367..34ad492 100644 --- a/Controller/DanceController.php +++ b/Controller/DanceController.php @@ -67,7 +67,7 @@ class DanceController extends AbstractController { } //Add calendar - $this->context['calendar'] = $this->doctrine->getRepository(Session::class)->findAllByPeriodAsCalendarArray($this->period, !$this->isGranted('IS_AUTHENTICATED_REMEMBERED'), floatval($latitude), floatval($longitude)); + $this->context['calendar'] = $this->doctrine->getRepository(Session::class)->findAllByPeriodAsCalendarArray($this->period, !$this->checker->isGranted('IS_AUTHENTICATED_REMEMBERED'), floatval($latitude), floatval($longitude)); //Set dances $this->context['dances'] = []; @@ -95,7 +95,7 @@ class DanceController extends AbstractController { $response = new Response(); //With logged user - if ($this->isGranted('IS_AUTHENTICATED_REMEMBERED')) { + if ($this->checker->isGranted('IS_AUTHENTICATED_REMEMBERED')) { //Set last modified $response->setLastModified(new \DateTime('-1 year'));