Skip to content

Instantly share code, notes, and snippets.

@redleafar
Created October 13, 2016 01:39
Show Gist options
  • Save redleafar/02cc5a5642aa240e57af349a0dc342cc to your computer and use it in GitHub Desktop.
Save redleafar/02cc5a5642aa240e57af349a0dc342cc to your computer and use it in GitHub Desktop.
Get logged user from Admin
$user = $this->getConfigurationPool()->getContainer()->get('security.token_storage')->getToken()->getUser();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment