src/Controller/AppController.php line 25

Open in your IDE?
  1. <?php
  2. namespace App\Controller;
  3. use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
  4. use Symfony\Component\HttpFoundation\Request;
  5. use Symfony\Component\HttpFoundation\Response;
  6. use Symfony\Component\Routing\Annotation\Route;
  7. use Symfony\Component\HttpFoundation\Cookie;
  8. use Symfony\Component\HttpFoundation\ResponseHeaderBag;
  9. use Symfony\Component\Mime\FileinfoMimeTypeGuesser;
  10. use Symfony\Component\HttpFoundation\BinaryFileResponse;
  11. use Sensio\Bundle\FrameworkExtraBundle\Configuration\IsGranted;
  12. class AppController extends AbstractController
  13. {
  14.     public function __construct() {
  15.         date_default_timezone_set("Europe/Paris");
  16.     }
  17.     
  18.     /**
  19.      * @Route("/", name="homepage")
  20.      */
  21.     public function index(): Response
  22.     {
  23.         $em $this->getDoctrine()->getManager('default');
  24.         return $this->render('article/index.html.twig');
  25.     }
  26.     
  27.     
  28.     
  29.     
  30.     
  31. }