@@ 61-72 (lines=12) @@ | ||
58 | $this->createConfigurationFor($institution); |
|
59 | } |
|
60 | ||
61 | public function applyWhitelistCreatedEvent(WhitelistCreatedEvent $event) |
|
62 | { |
|
63 | foreach ($event->whitelistedInstitutions as $whitelistedInstitution) { |
|
64 | $institution = new Institution($whitelistedInstitution->getInstitution()); |
|
65 | ||
66 | if ($this->configuredInstitutionRepository->hasConfigurationFor($institution)) { |
|
67 | continue; |
|
68 | } |
|
69 | ||
70 | $this->createConfigurationFor($institution); |
|
71 | } |
|
72 | } |
|
73 | ||
74 | public function applyWhitelistReplacedEvent(WhitelistReplacedEvent $event) |
|
75 | { |
|
@@ 74-85 (lines=12) @@ | ||
71 | } |
|
72 | } |
|
73 | ||
74 | public function applyWhitelistReplacedEvent(WhitelistReplacedEvent $event) |
|
75 | { |
|
76 | foreach ($event->whitelistedInstitutions as $whitelistedInstitution) { |
|
77 | $institution = new Institution($whitelistedInstitution->getInstitution()); |
|
78 | ||
79 | if ($this->configuredInstitutionRepository->hasConfigurationFor($institution)) { |
|
80 | continue; |
|
81 | } |
|
82 | ||
83 | $this->createConfigurationFor($institution); |
|
84 | } |
|
85 | } |
|
86 | ||
87 | public function applyInstitutionsAddedToWhitelistEvent(InstitutionsAddedToWhitelistEvent $event) |
|
88 | { |