]> Raphaël G. Git Repositories - airbundle/commitdiff
Replace dropped calls with checker, factory and security replacements
authorRaphaël Gertz <git@rapsys.eu>
Thu, 29 Feb 2024 14:14:18 +0000 (15:14 +0100)
committerRaphaël Gertz <git@rapsys.eu>
Thu, 29 Feb 2024 14:14:18 +0000 (15:14 +0100)
Controller/DanceController.php

index 76433678c082e036630d335f4f5070c11ea7f7a0..34ad4929e28bb810db2c1363793ec9350fd590b4 100644 (file)
@@ -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'));