src\Controller\HomeController.php line 14

  1. <?php
  2. namespace App\Controller;
  3. use App\Form\RegisterType;
  4. use App\Form\ResetPasswordType;
  5. use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
  6. use Symfony\Component\HttpFoundation\Response;
  7. use Symfony\Component\Routing\Annotation\Route;
  8. class HomeController extends AbstractController
  9. {
  10.     #[Route('/'name'app_home')]
  11.     public function index(): Response
  12.     {
  13.         $formInscription $this->createForm(RegisterType::class);
  14.         $formResetPassword $this->createForm(ResetPasswordType::class);
  15.         return $this->render('home/index.html.twig', [
  16.             'formInscription' => $formInscription->createView(),
  17.             'formResetPassword' => $formResetPassword->createView(),
  18.         ]);
  19.     }
  20. }