ZfcRbac\Service\RoleService::getIdentity PHP Method

getIdentity() public method

Get the current identity from the identity provider
public getIdentity ( ) : ZfcRbac\Identity\IdentityInterface | null
return ZfcRbac\Identity\IdentityInterface | null
    public function getIdentity()
    {
        return $this->identityProvider->getIdentity();
    }

Usage Example

コード例 #1
0
 /**
  * Get the current identity from the role service
  *
  * @return IdentityInterface|null
  */
 public function getIdentity()
 {
     return $this->roleService->getIdentity();
 }