final class UserServices (View source)

Users, groups, permissions and preferences. The permission service is memoized so its per-user cache spans the whole request.

Methods

__construct(PDO $db, ConfigurationInterface $config, LoggerInterface $logger, ControllerServiceFactory $services)

No description

permissionService()

Shared instance so the per-user permission cache spans the whole request

apiPermissionService()

The permission rules that need group or template lookups beyond PermissionService

userManagementService()

The user service the API uses, over the request's shared permission cache

lastSuperAdminGuard()

The last-super-admin rule for template, group and membership writes, on the request's transaction

userPreferenceService()

Shared instance so its per-request preference cache survives across consumers (pagination, timezone, and direct preference reads).

userLogger()

No description

groupLogger()

No description

Details

__construct(PDO $db, ConfigurationInterface $config, LoggerInterface $logger, ControllerServiceFactory $services)

No description

Parameters

PDO $db
ConfigurationInterface $config
LoggerInterface $logger
ControllerServiceFactory $services

UserRepositoryInterface userRepository()

No description

PermissionService permissionService()

Shared instance so the per-user permission cache spans the whole request

Return Value

PermissionService

ApiPermissionService apiPermissionService()

The permission rules that need group or template lookups beyond PermissionService

Return Value

ApiPermissionService

UserManagementService userManagementService()

The user service the API uses, over the request's shared permission cache

Return Value

UserManagementService

PasswordPolicyService passwordPolicyService()

No description

Return Value

PasswordPolicyService

PasswordGenerationService passwordGenerationService()

No description

UserGroupRepositoryInterface userGroupRepository()

No description

UserGroupMemberRepositoryInterface userGroupMemberRepository()

No description

PermissionTemplateRepositoryInterface permissionTemplateRepository()

No description

PermissionTemplateWriteService permissionTemplateWriteService()

No description

LastSuperAdminGuard lastSuperAdminGuard()

The last-super-admin rule for template, group and membership writes, on the request's transaction

Return Value

LastSuperAdminGuard

UserPreferenceService userPreferenceService()

Shared instance so its per-request preference cache survives across consumers (pagination, timezone, and direct preference reads).

Return Value

UserPreferenceService

UserTimezoneService userTimezoneService()

No description

Return Value

UserTimezoneService

PaginationService paginationService()

No description

Return Value

PaginationService

UserProvisioningService userProvisioningService()

No description

UserAgreementRepositoryInterface userAgreementRepository()

No description

DbUserLogger userLogger()

No description

Return Value

DbUserLogger

DbGroupLogger groupLogger()

No description

Return Value

DbGroupLogger