<?php
namespace App\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Routing\Annotation\Route;
class DefaultController extends AbstractController {
/**
* @Route("/", name="home")
*/
public function index() {
$date = new \DateTime('2023-03-31');
$date->modify('last sunday of this month');
dump($date->format('d/m/Y'));
$date = new \DateTime('2023-10-31');
$date->modify('last sunday of this month');
dump($date->format('d/m/Y'));
return $this->render('default/index.html.twig');
}
/**
* @Route("/carte", name="carte")
*/
public function carte() {
return $this->render('carte/carte.html.twig');
}
}