Replace nav links with NavLinks class
This commit is contained in:
parent
6c9e67e078
commit
920887f3f9
@ -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')]
|
||||
|
Loading…
Reference in New Issue
Block a user