/** * Get PermissionResolver. * * @return \eZ\Publish\API\Repository\PermissionResolver */ public function getPermissionResolver() { if ($this->permissionResolver === null) { $this->permissionResolver = new Permission\PermissionResolver($this->getRoleDomainMapper(), $this->getLimitationService(), $this->persistenceHandler->userHandler(), $this->currentUserRef); } return $this->permissionResolver; }
/** * Get RoleService * * @return \eZ\Publish\API\Repository\RoleService */ public function getRoleService() { if ($this->roleService !== null) { return $this->roleService; } $this->roleService = new RoleService($this, $this->persistenceHandler->userHandler(), $this->serviceSettings['role']); return $this->roleService; }