Dapatkan Pengguna Symfony

$user = $this->get('security.token_storage')->getToken()->getUser();
$user->getUsername();
Repulsive Ratel