示例#1
0
 /**
  * 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;
 }
示例#2
0
 /**
  * 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;
 }