From 920887f3f9b69a33e317e8ca15375efb6820e1f1 Mon Sep 17 00:00:00 2001 From: Ryan Prather Date: Mon, 2 Dec 2024 23:59:20 -0500 Subject: [PATCH] Replace nav links with NavLinks class --- src/Controller/StaffController.php | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/Controller/StaffController.php b/src/Controller/StaffController.php index 4cd7f29..d9b1e4e 100644 --- a/src/Controller/StaffController.php +++ b/src/Controller/StaffController.php @@ -3,6 +3,7 @@ namespace App\Controller; use App\Entity\User; +use App\Libs\NavList; use Doctrine\ORM\EntityManagerInterface; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; @@ -17,13 +18,7 @@ class StaffController 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('/staff-dashboard', name: 'staff')]