X-Git-Url: https://git.rapsys.eu/airbundle/blobdiff_plain/b45e74982296a1f8ed3abcb0a6c895c35ac5e375..a995943e080b3dc898d51cce6852f2e1d0956b81:/Controller/AbstractController.php diff --git a/Controller/AbstractController.php b/Controller/AbstractController.php index 423d2fd..9f72c5f 100644 --- a/Controller/AbstractController.php +++ b/Controller/AbstractController.php @@ -122,12 +122,12 @@ abstract class AbstractController extends BaseAbstractController implements Serv //Set period $this->period = new \DatePeriod( //Start from first monday of week - new \DateTime('Monday this week'), + new \DateTimeImmutable('Monday this week'), //Iterate on each day new \DateInterval('P1D'), //End with next sunday and 4 weeks //XXX: we can't use isGranted here as AuthenticatedVoter deny access because user is likely not authenticated yet :'( - new \DateTime('Monday this week + 2 week') + new \DateTimeImmutable('Monday this week + 2 week') ); //Get main request