src/Controller/DashboardController.php line 31

  1. <?php
  2. namespace App\Controller;
  3. use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
  4. use Symfony\Bundle\SecurityBundle\Security;
  5. use Symfony\Component\HttpFoundation\Response;
  6. use Symfony\Component\Routing\Annotation\Route;
  7. /**
  8.  * Class DashboardController
  9.  *
  10.  * @package App\Controller
  11.  *
  12.  * @author Tristan Heckelsmüller <t.heckelsmueller@seonicals.de>
  13.  * @copyright Copyright (c) 2023, Seonicals GmbH
  14.  */
  15. class DashboardController extends AbstractController
  16. {
  17.     private Security $security;
  18.     public function __construct(Security $security)
  19.     {
  20.         $this->security $security;
  21.     }
  22.     #[Route('/dashboard'name'app_dashboard')]
  23.     public function index(): Response
  24.     {
  25.         return $this->render('dashboard/index.html.twig', [
  26.             'controller_name' => 'DashboardController',
  27.         ]);
  28.     }
  29. }