src/Controller/BaseController.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Controller;
  3. use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
  4. use Symfony\Component\HttpFoundation\Response;
  5. use Symfony\Component\Routing\Annotation\Route;
  6. class BaseController extends AbstractController
  7. {
  8.     #[Route(path"/"name"home"methods:["GET""HEAD"])]
  9.     public function home(): Response
  10.     {
  11.         return $this->render('home.html.twig', [
  12.         ]);
  13.     }
  14.     #[Route(path"/phpinfo"name"phpinfo"methods:["GET""HEAD"], condition:"'dev' === '%kernel.environment%'")]
  15.     public function phpinfo(): Response
  16.     {
  17.         phpinfo();
  18.         die();
  19.     }
  20. }