src/Dashboard/Infrastructure/Http/Controller/Web/DashboardController.php line 21

Open in your IDE?
  1. <?php
  2. namespace Dashboard\Infrastructure\Http\Controller\Web;
  3. use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
  4. use Symfony\Component\HttpFoundation\Request;
  5. use Symfony\Component\HttpFoundation\Response;
  6. use Symfony\Component\Routing\Annotation\Route;
  7. use Symfony\Component\Security\Core\Security;
  8. class DashboardController extends AbstractController
  9. {
  10.     public function __construct(
  11.         private Security $security)
  12.     {
  13.     }
  14.     /**
  15.      * @Route("/", name="dashboard.main")
  16.      */
  17.     public function dashboardMain(Request $request): Response
  18.     {
  19.         $user $this->security->getUser();
  20.         return $this->render('@Dashboard/dashboard.html.twig', []);
  21.     }
  22. }