navLinks = NavList::LIST; } #[Route('/dashboard', name: 'app_dashboard')] public function dashboard(Request $request, #[CurrentUser()] ?User $user): Response { $this->denyAccessUnlessGranted('IS_AUTHENTICATED_FULLY'); if (!$user->getCompany()) { return $this->redirectToRoute('app_register_step', ['step' => RegistrationController::REGISTER_STEP_TWO]); } $this->navLinks['user_dashboard'] = 'nav-link text-white active bg-gradient-dark'; return $this->render( 'internal/dashboard.html.twig', array_merge( $this->navLinks, [ 'breadcrumbs' => [ 'Dashboard' ], 'notifications' => $user->retrieveUnreadNotifications(), ] ) ); } #[Route('/profile', name: 'app_profile')] public function profile(#[CurrentUser()] User $user): Response { $this->denyAccessUnlessGranted('IS_AUTHENTICATED_FULLY'); $this->navLinks['profile'] = 'nav-link text-white active bg-gradient-dark'; return $this->render( 'internal/profile.html.twig', array_merge( $this->navLinks, [ 'breadcrumbs' => [ 'Profile' ], 'notifications' => $user->retrieveUnreadNotifications(), ] ) ); } }