<?php
namespace App\Controller;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Routing\Annotation\Route;
use Symfony\Component\HttpFoundation\Cookie;
use Symfony\Component\HttpFoundation\ResponseHeaderBag;
use Symfony\Component\Mime\FileinfoMimeTypeGuesser;
use Symfony\Component\HttpFoundation\BinaryFileResponse;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\IsGranted;
class AppController extends AbstractController
{
public function __construct() {
date_default_timezone_set("Europe/Paris");
}
/**
* @Route("/", name="homepage")
*/
public function index(): Response
{
$em = $this->getDoctrine()->getManager('default');
return $this->render('article/index.html.twig');
}
}