ZfcRbac\Service\RoleService::getIdentity PHP Метод

getIdentity() публичный Метод

Get the current identity from the identity provider
public getIdentity ( ) : ZfcRbac\Identity\IdentityInterface | null
Результат 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();
 }