From 167bc5b626d8240a0692dfc671d90074a16b625a Mon Sep 17 00:00:00 2001 From: Ryan Prather Date: Mon, 2 Dec 2024 23:58:23 -0500 Subject: [PATCH] Replaced nav links with NavLinks class --- src/Controller/DefaultController.php | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/Controller/DefaultController.php b/src/Controller/DefaultController.php index ecf03f3..1f9de69 100644 --- a/src/Controller/DefaultController.php +++ b/src/Controller/DefaultController.php @@ -3,7 +3,7 @@ namespace App\Controller; use App\Entity\User; -use App\Form\UserFormType; +use App\Libs\NavList; use Doctrine\ORM\EntityManagerInterface; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Request; @@ -20,13 +20,7 @@ class DefaultController extends AbstractController private readonly UserPasswordHasherInterface $userPasswordHasher, private array $navLinks = [] ) { - $this->navLinks = [ - 'admin_dashboard' => 'nav-link text-dark', - 'user_dashboard' => 'nav-link text-dark', - 'profile' => 'nav-link text-dark', - 'user_list' => 'nav-link text-dark', - 'staff_dashboard' => 'nav-link text-dark', - ]; + $this->navLinks = NavList::LIST; } #[Route('/dashboard', name: 'app_dashboard')]