X-Git-Url: https://git.rapsys.eu/airbundle/blobdiff_plain/f2e474fce42a32fbff1af94255d274ff0b1c2d43..b55b7f6127d518d2894508ba1837b71364c1768b:/Controller/DanceController.php 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'));