LinkRegistrationService
in package
FinalYes
LinkRegistrationService is responsible for registrations (Global or per Space) using an Invite Link.
Tags
Table of Contents
Constants
- SETTING_VAR_ENABLED = 'auth.internalUsersCanInviteByLink'
- SETTING_VAR_SPACE_TOKEN = 'inviteToken'
- SETTING_VAR_TOKEN = 'registration.inviteToken'
Properties
Methods
- __construct() : mixed
- convertToInvite() : Invite|null
- createFromRequest() : LinkRegistrationService
- getSpace() : Space|null
- getStoredToken() : string|null
- inviteToSpace() : bool
- isEnabled() : bool
- isValid() : bool
- setNewToken() : string
- storeInSession() : mixed
Constants
SETTING_VAR_ENABLED
public
mixed
SETTING_VAR_ENABLED
= 'auth.internalUsersCanInviteByLink'
SETTING_VAR_SPACE_TOKEN
public
mixed
SETTING_VAR_SPACE_TOKEN
= 'inviteToken'
SETTING_VAR_TOKEN
public
mixed
SETTING_VAR_TOKEN
= 'registration.inviteToken'
Properties
$space
private
Space|null
$space
$token
private
string|null
$token
Methods
__construct()
public
__construct([string|null $token = null ][, Space|null $space = null ]) : mixed
Parameters
- $token : string|null = null
- $space : Space|null = null
convertToInvite()
public
convertToInvite(string $email) : Invite|null
Parameters
- $email : string
Tags
Return values
Invite|nullcreateFromRequest()
public
static createFromRequest() : LinkRegistrationService
Return values
LinkRegistrationServicegetSpace()
public
getSpace() : Space|null
Return values
Space|nullgetStoredToken()
public
getStoredToken() : string|null
Return values
string|nullinviteToSpace()
public
inviteToSpace(User|null $user) : bool
Parameters
- $user : User|null
Tags
Return values
boolisEnabled()
public
isEnabled() : bool
Return values
boolisValid()
public
isValid() : bool
Return values
boolsetNewToken()
public
setNewToken() : string
Return values
stringstoreInSession()
public
storeInSession() : mixed