|
@@ 53-64 (lines=12) @@
|
| 50 |
|
$this->repository->save($institutionConfigurationOptions); |
| 51 |
|
} |
| 52 |
|
|
| 53 |
|
public function applyUseRaLocationOptionChangedEvent(UseRaLocationsOptionChangedEvent $event) |
| 54 |
|
{ |
| 55 |
|
$currentOptions = $this->repository->findConfigurationOptionsFor($event->institution); |
| 56 |
|
|
| 57 |
|
$institutionConfigurationOptions = InstitutionConfigurationOptions::create( |
| 58 |
|
$event->institution, |
| 59 |
|
$event->useRaLocationsOption, |
| 60 |
|
new ShowRaaContactInformationOption($currentOptions->showRaaContactInformationOption) |
| 61 |
|
); |
| 62 |
|
|
| 63 |
|
$this->repository->save($institutionConfigurationOptions); |
| 64 |
|
} |
| 65 |
|
|
| 66 |
|
public function applyShowRaaContactInformationOptionChangedEvent(ShowRaaContactInformationOptionChangedEvent $event) |
| 67 |
|
{ |
|
@@ 66-77 (lines=12) @@
|
| 63 |
|
$this->repository->save($institutionConfigurationOptions); |
| 64 |
|
} |
| 65 |
|
|
| 66 |
|
public function applyShowRaaContactInformationOptionChangedEvent(ShowRaaContactInformationOptionChangedEvent $event) |
| 67 |
|
{ |
| 68 |
|
$currentOptions = $this->repository->findConfigurationOptionsFor($event->institution); |
| 69 |
|
|
| 70 |
|
$institutionConfigurationOptions = InstitutionConfigurationOptions::create( |
| 71 |
|
$event->institution, |
| 72 |
|
new UseRaLocationsOption($currentOptions->useRaLocationsOption), |
| 73 |
|
$event->showRaaContactInformationOption |
| 74 |
|
); |
| 75 |
|
|
| 76 |
|
$this->repository->save($institutionConfigurationOptions); |
| 77 |
|
} |
| 78 |
|
} |
| 79 |
|
|