]> Raphaƫl G. Git Repositories - airbundle/blobdiff - Controller/DanceController.php
Rename user bundle route alias
[airbundle] / Controller / DanceController.php
index 76433678c082e036630d335f4f5070c11ea7f7a0..34ad4929e28bb810db2c1363793ec9350fd590b4 100644 (file)
@@ -67,7 +67,7 @@ class DanceController extends AbstractController {
                }
 
                //Add calendar
                }
 
                //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'] = [];
 
                //Set dances
                $this->context['dances'] = [];
@@ -95,7 +95,7 @@ class DanceController extends AbstractController {
                $response = new Response();
 
                //With logged user
                $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'));
 
                        //Set last modified
                        $response->setLastModified(new \DateTime('-1 year'));