src/Controller/AuthController.php line 18

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. use Symfony\Component\Security\Http\Authentication\AuthenticationUtils;
  7. #[Route(path: '/')]
  8. class AuthController extends AbstractController
  9. {
  10. /**
  11. * Auth Login Action
  12. * Das Routing ist im routing.yml File definiert!
  13. */
  14. #[Route(path: '/login', name: 'auth_login')]
  15. public function login(AuthenticationUtils $authenticationUtils): Response
  16. {
  17. return $this->render('Auth/login.html.twig', [
  18. 'last_username' => $authenticationUtils->getLastUsername(),
  19. 'error' => $authenticationUtils->getLastAuthenticationError(),
  20. ]);
  21. }
  22. /**
  23. * Auth Logout Action
  24. * (erfasst, damit im System vorhanden, Rest macht die Firewall).
  25. */
  26. #[Route(path: '/logout', name: 'auth_logout')]
  27. public function logout()
  28. {
  29. }
  30. /**
  31. * Auth Login Check Action
  32. * (erfasst, damit im System vorhanden, Rest macht die Firewall).
  33. */
  34. #[Route(path: '/login-check', name: 'auth_logincheck')]
  35. public function loginCheck()
  36. {
  37. }
  38. }