]> Raphaël G. Git Repositories - airbundle/commitdiff
Reduce connected period from 4 weeks to 3 weeks.
authorRaphaël Gertz <git@rapsys.eu>
Sat, 10 Apr 2021 13:05:07 +0000 (15:05 +0200)
committerRaphaël Gertz <git@rapsys.eu>
Sat, 10 Apr 2021 13:05:07 +0000 (15:05 +0200)
Controller/DefaultController.php
Controller/LocationController.php
Controller/SessionController.php
Controller/UserController.php

index eeb520c50e0ad6e854e0d6d631b82e4c29e30013..ac25f63c3dd12c7ec45d3b610d1b93f5b9a9a079 100644 (file)
@@ -267,7 +267,7 @@ class DefaultController {
                        new \DateInterval('P1D'),
                        //End with next sunday and 4 weeks
                        new \DateTime(
                        new \DateInterval('P1D'),
                        //End with next sunday and 4 weeks
                        new \DateTime(
-                               $this->isGranted('IS_AUTHENTICATED_REMEMBERED')?'Monday this week + 4 week':'Monday this week + 2 week'
+                               $this->isGranted('IS_AUTHENTICATED_REMEMBERED')?'Monday this week + 3 week':'Monday this week + 2 week'
                        )
                );
 
                        )
                );
 
@@ -282,6 +282,7 @@ class DefaultController {
                return $this->render('@RapsysAir/default/index.html.twig', ['title' => $title, 'section' => $section, 'calendar' => $calendar, 'locations' => $locations]+$this->context);
 
                //Set Cache-Control must-revalidate directive
                return $this->render('@RapsysAir/default/index.html.twig', ['title' => $title, 'section' => $section, 'calendar' => $calendar, 'locations' => $locations]+$this->context);
 
                //Set Cache-Control must-revalidate directive
+               //TODO: add a javascript forced refresh after 1h ? or header refresh ?
                #$response->setPublic(true);
                #$response->setMaxAge(300);
                #$response->mustRevalidate();
                #$response->setPublic(true);
                #$response->setMaxAge(300);
                #$response->mustRevalidate();
index 6a77657629721c90817b23610e058907710b21fb..0cb09f35f8995e5a55a47c9d5d54672127d24659 100644 (file)
@@ -295,7 +295,7 @@ class LocationController extends DefaultController {
                        new \DateInterval('P1D'),
                        //End with next sunday and 4 weeks
                        new \DateTime(
                        new \DateInterval('P1D'),
                        //End with next sunday and 4 weeks
                        new \DateTime(
-                               $this->isGranted('IS_AUTHENTICATED_REMEMBERED')?'Monday this week + 4 week':'Monday this week + 2 week'
+                               $this->isGranted('IS_AUTHENTICATED_REMEMBERED')?'Monday this week + 3 week':'Monday this week + 2 week'
                        )
                );
 
                        )
                );
 
@@ -415,7 +415,7 @@ class LocationController extends DefaultController {
                        new \DateInterval('P1D'),
                        //End with next sunday and 4 weeks
                        new \DateTime(
                        new \DateInterval('P1D'),
                        //End with next sunday and 4 weeks
                        new \DateTime(
-                               $this->isGranted('IS_AUTHENTICATED_REMEMBERED')?'Monday this week + 4 week':'Monday this week + 2 week'
+                               $this->isGranted('IS_AUTHENTICATED_REMEMBERED')?'Monday this week + 3 week':'Monday this week + 2 week'
                        )
                );
 
                        )
                );
 
index 26ceb94a268ad5424e056a00a521a49e8aeea2e1..30a0a730bd786e587dd58d8e7de4ccb18d8166ac 100644 (file)
@@ -464,7 +464,7 @@ class SessionController extends DefaultController {
                        new \DateInterval('P1D'),
                        //End with next sunday and 4 weeks
                        new \DateTime(
                        new \DateInterval('P1D'),
                        //End with next sunday and 4 weeks
                        new \DateTime(
-                               $this->isGranted('IS_AUTHENTICATED_REMEMBERED')?'Monday this week + 4 week':'Monday this week + 2 week'
+                               $this->isGranted('IS_AUTHENTICATED_REMEMBERED')?'Monday this week + 3 week':'Monday this week + 2 week'
                        )
                );
 
                        )
                );
 
@@ -686,7 +686,7 @@ class SessionController extends DefaultController {
                        new \DateInterval('P1D'),
                        //End with next sunday and 4 weeks
                        new \DateTime(
                        new \DateInterval('P1D'),
                        //End with next sunday and 4 weeks
                        new \DateTime(
-                               $this->isGranted('IS_AUTHENTICATED_REMEMBERED')?'Monday this week + 4 week':'Monday this week + 2 week'
+                               $this->isGranted('IS_AUTHENTICATED_REMEMBERED')?'Monday this week + 3 week':'Monday this week + 2 week'
                        )
                );
 
                        )
                );
 
index c78c69bcbb84d9afc97598a8243657b0b52b874a..42023d4e5576f2e96693637ba2067a71a8e4765a 100644 (file)
@@ -53,7 +53,7 @@ class UserController extends DefaultController {
                        new \DateInterval('P1D'),
                        //End with next sunday and 4 weeks
                        new \DateTime(
                        new \DateInterval('P1D'),
                        //End with next sunday and 4 weeks
                        new \DateTime(
-                               $this->isGranted('IS_AUTHENTICATED_REMEMBERED')?'Monday this week + 4 week':'Monday this week + 2 week'
+                               $this->isGranted('IS_AUTHENTICATED_REMEMBERED')?'Monday this week + 3 week':'Monday this week + 2 week'
                        )
                );
 
                        )
                );
 
@@ -126,7 +126,7 @@ class UserController extends DefaultController {
                        new \DateInterval('P1D'),
                        //End with next sunday and 4 weeks
                        new \DateTime(
                        new \DateInterval('P1D'),
                        //End with next sunday and 4 weeks
                        new \DateTime(
-                               $this->isGranted('IS_AUTHENTICATED_REMEMBERED')?'Monday this week + 4 week':'Monday this week + 2 week'
+                               $this->isGranted('IS_AUTHENTICATED_REMEMBERED')?'Monday this week + 3 week':'Monday this week + 2 week'
                        )
                );
 
                        )
                );