getIdentity() public method

Get the current identity from the identity provider
public getIdentity ( ) : ZfcRbac\Identity\IdentityInterface | null
return ZfcRbac\Identity\IdentityInterface | null
 /**
  * Get the current identity from the role service
  *
  * @return IdentityInterface|null
  */
 public function getIdentity()
 {
     return $this->roleService->getIdentity();
 }