Convert to use NavList::PRESENT_LINK constant
This commit is contained in:
parent
5975785580
commit
4405cb19ff
@ -32,7 +32,7 @@ class DefaultController extends AbstractController
|
|||||||
return $this->redirectToRoute('app_register_step', ['step' => RegistrationController::REGISTER_STEP_TWO]);
|
return $this->redirectToRoute('app_register_step', ['step' => RegistrationController::REGISTER_STEP_TWO]);
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->navLinks['user_dashboard'] = 'nav-link text-white active bg-gradient-dark';
|
$this->navLinks['user_dashboard'] = NavList::PRESENT_LINK;
|
||||||
|
|
||||||
return $this->render(
|
return $this->render(
|
||||||
'internal/dashboard.html.twig',
|
'internal/dashboard.html.twig',
|
||||||
@ -53,7 +53,7 @@ class DefaultController extends AbstractController
|
|||||||
{
|
{
|
||||||
$this->denyAccessUnlessGranted('IS_AUTHENTICATED_FULLY');
|
$this->denyAccessUnlessGranted('IS_AUTHENTICATED_FULLY');
|
||||||
|
|
||||||
$this->navLinks['profile'] = 'nav-link text-white active bg-gradient-dark';
|
$this->navLinks['profile'] = NavList::PRESENT_LINK;
|
||||||
|
|
||||||
return $this->render(
|
return $this->render(
|
||||||
'internal/profile.html.twig',
|
'internal/profile.html.twig',
|
||||||
@ -68,5 +68,4 @@ class DefaultController extends AbstractController
|
|||||||
)
|
)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user