protected getCurrentUser ( ) : Sulu\Component\Security\Authentication\UserInterface | void | ||
return | Sulu\Component\Security\Authentication\UserInterface | void |
protected function getCurrentUser()
{
if (!$this->tokenStorage) {
return;
}
if (!$this->tokenStorage->getToken()) {
return;
}
return $this->tokenStorage->getToken()->getUser();
}