src/Infrastructure/Controller/Dev/InteController.php line 17

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. namespace App\Infrastructure\Controller\Dev;
  4. use App\Infrastructure\Controller\Common\BaseController;
  5. use Symfony\Component\HttpFoundation\Response;
  6. use Symfony\Component\Routing\Annotation\Route;
  7. /**
  8. * Preconfigured controller for integration.
  9. */
  10. final class InteController extends BaseController
  11. {
  12. #[Route(path: '/', name: 'default')]
  13. public function defaultAction(): Response
  14. {
  15. return $this->redirectToRoute('app_login_redirect');
  16. }
  17. /**
  18. * @Route("/email/refus-diagnostic", name="email-refus-diagnostic")
  19. */
  20. public function emailRefusDiagnosticAction()
  21. {
  22. return $this->render('Email/refused_diagnostic.html.twig');
  23. }
  24. /**
  25. * @Route("/email/diagnostic-a-valider", name="email-diagnostic-a-valider")
  26. */
  27. public function emaiDiagnosticAValiderAction()
  28. {
  29. throw new \Exception();
  30. return $this->render('Email/awaiting_validation.html.twig');
  31. }
  32. }