|
@@ -37,7 +37,7 @@ discard block |
|
|
block discarded – undo |
|
37
|
37
|
public function applyNewInstitutionConfigurationCreatedEvent(NewInstitutionConfigurationCreatedEvent $event): void |
|
38
|
38
|
{ |
|
39
|
39
|
$institutionConfiguration = new InstitutionConfiguration( |
|
40
|
|
- (string)$event->institution, |
|
|
40
|
+ (string) $event->institution, |
|
41
|
41
|
$event->ssoOn2faOption->isEnabled(), |
|
42
|
42
|
); |
|
43
|
43
|
|
|
@@ -46,7 +46,7 @@ discard block |
|
|
block discarded – undo |
|
46
|
46
|
|
|
47
|
47
|
public function applySsoOn2faOptionChangedEvent(SsoOn2faOptionChangedEvent $event): void |
|
48
|
48
|
{ |
|
49
|
|
- $institutionConfiguration = $this->repository->findByInstitution((string)$event->institution); |
|
|
49
|
+ $institutionConfiguration = $this->repository->findByInstitution((string) $event->institution); |
|
50
|
50
|
if ($institutionConfiguration instanceof InstitutionConfiguration) { |
|
51
|
51
|
$institutionConfiguration->ssoOn2faEnabled = $event->ssoOn2faOption->isEnabled(); |
|
52
|
52
|
$this->repository->save($institutionConfiguration); |
|
@@ -55,7 +55,7 @@ discard block |
|
|
block discarded – undo |
|
55
|
55
|
// It can happen that the event changed for an institution that already exists, but is not yet projected to |
|
56
|
56
|
// this projection. In that case we can create it. |
|
57
|
57
|
$institutionConfiguration = new InstitutionConfiguration( |
|
58
|
|
- (string)$event->institution, |
|
|
58
|
+ (string) $event->institution, |
|
59
|
59
|
$event->ssoOn2faOption->isEnabled(), |
|
60
|
60
|
); |
|
61
|
61
|
$this->repository->save($institutionConfiguration); |
|
@@ -63,7 +63,7 @@ discard block |
|
|
block discarded – undo |
|
63
|
63
|
|
|
64
|
64
|
public function applyInstitutionConfigurationRemovedEvent(InstitutionConfigurationRemovedEvent $event): void |
|
65
|
65
|
{ |
|
66
|
|
- $this->repository->removeFor((string)$event->institution); |
|
|
66
|
+ $this->repository->removeFor((string) $event->institution); |
|
67
|
67
|
} |
|
68
|
68
|
|
|
69
|
69
|
protected function applyIdentityForgottenEvent(IdentityForgottenEvent $event): void |