How can I get user data in KnpMenuBundle Builder?
I know that I can get user data through this line in the controller:
$user = $this->get('security.context')->getToken()->getUser();
but I want it to get into my menu constructor too, so I can put the username in the menu.
NaGeL182
source share