$system->register()
Validates the license key and adds it to the .license file in the config folder if possible.
$system->register(string|null $license = null, string|null $email = null): bool
Parameters
| Name | Type | Default |
|---|---|---|
| $license | stringornull |
null
|
stringornull |
null
|
Return type
bool
This method modifies the existing $system object it is applied to and returns it again.
Exceptions
| Type | Description |
|---|---|
Kirby\Exception\Exception |
|
Kirby\Exception\InvalidArgumentException |