Cleanup, configuration
This commit is contained in:
1 parent
88bf239eb1
commit
6184e300bc
4 files changed
+38
-32
No files matched your search
@@ -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