How can I get User data in theKnpMenuBundle
's Builder?
I know I can get the user data via this line in Controller:
$user = $this->get('security.context')->getToken()->getUser();
but I want it to get in my menu builder aswell, so I can put the username in the menu.