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