src/Controller/PageController.php line 13

  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. class PageController extends AbstractController
  8. {
  9.     #[Route(path'/lake'name'app_home')]
  10.     public function login(AuthenticationUtils $authenticationUtils): Response
  11.     {
  12.         $platforms $this->getUser()->getUserPlatforms();
  13.     
  14.         return $this->render('pages/lake_home.html.twig', [
  15.             'platforms' => $platforms,
  16.         ]);
  17.     }
  18. }