class UserProvisioningLock

Serializes the idempotent provisioning of users because multiple concurrent requests otherwise race for the window between findByObjectId() and the insert into the DB.

Constants

private KEY_PREFIX

private TTL_SECONDS

Methods

__construct(LockFactory $lockFactory)

No description

whileHoldingLockForPid(string $extranetPid, callable $provisionUser)

No description

Details

at line 19
__construct(LockFactory $lockFactory)

No description

Parameters

LockFactory $lockFactory

at line 27
User whileHoldingLockForPid(string $extranetPid, callable $provisionUser)

No description

Parameters

string $extranetPid
callable $provisionUser

Return Value

User