From: Raphaƫl Gertz Date: Thu, 29 Feb 2024 14:14:18 +0000 (+0100) Subject: Replace dropped calls with checker, factory and security replacements X-Git-Tag: 0.3.0~25 X-Git-Url: https://git.rapsys.eu/airbundle/commitdiff_plain/118fc8a9aab25928ded9316835b4597eda2f8326 Replace dropped calls with checker, factory and security replacements --- 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'));