Cleanup, configuration
This commit is contained in:
@ -8,6 +8,8 @@ class Configuration
|
||||
|
||||
private ?string $jwtSecret = null;
|
||||
|
||||
private bool $allowAnonymousSubscribe = false;
|
||||
|
||||
public static function createDefault(): Configuration
|
||||
{
|
||||
return new Configuration();
|
||||
@ -34,5 +36,16 @@ class Configuration
|
||||
{
|
||||
return $this->jwtSecret;
|
||||
}
|
||||
|
||||
function getAllowAnonymousSubscribe():bool
|
||||
{
|
||||
return $this->allowAnonymousSubscribe;
|
||||
}
|
||||
|
||||
function setAllowAnonymousSubscribe(bool $allowAnonymousSubscribe): self
|
||||
{
|
||||
$this->allowAnonymousSubscribe = $allowAnonymousSubscribe;
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user