Lines
100.00%
3 / 3
Methods
100.00%
3 / 3
Classes
100.00%
1 / 1
| Name | Lines | Methods | CRAP | ||||
|---|---|---|---|---|---|---|---|
| __construct | 100.00% | 1 / 1 | 100.00% | 1 / 1 | 1 | ||
| isSignInWithMicrosoftActive | 100.00% | 1 / 1 | 100.00% | 1 / 1 | 1 | ||
| isSignInWithKeycloakActive | 100.00% | 1 / 1 | 100.00% | 1 / 1 | 1 | ||
| 24 | readonly class SecuritySettings | |
| 25 | { | |
| 26 | public function __construct( | |
| 27 | private CoreConfiguration $coreConfiguration, | |
| 28 | ) { | |
| 29 | } | |
| 30 | ||
| 31 | public function isSignInWithMicrosoftActive(): bool | |
| 32 | { | |
| 33 | return (bool) $this->coreConfiguration->get(item: 'security.enableSignInWithMicrosoft'); | |
| 34 | } | |
| 35 | ||
| 36 | public function isSignInWithKeycloakActive(): bool | |
| 37 | { | |
| 38 | return (bool) $this->coreConfiguration->get(item: 'keycloak.enable'); | |
| 39 | } | |
| 40 | } |