class GroupReferenceResolver (View source)

Turns a submitted list of group references into distinct group entities

References are integer group IDs or exact group names. Callers are expected to have already established that the requester may assign groups at all.

Methods

__construct(UserGroupRepositoryInterface $groupRepository)

No description

array
resolve(mixed $submitted, int $maxEntries)

No description

Details

__construct(UserGroupRepositoryInterface $groupRepository)

No description

Parameters

UserGroupRepositoryInterface $groupRepository

array resolve(mixed $submitted, int $maxEntries)

No description

Parameters

mixed $submitted

Raw value supplied by the caller

int $maxEntries

Largest list accepted, guarding against a query storm

Return Value

array

On success, groups is keyed by group ID