@@ 70-81 (lines=12) @@ | ||
67 | $this->createConfigurationFor($institution); |
|
68 | } |
|
69 | ||
70 | public function handleWhitelistCreatedEvent(WhitelistCreatedEvent $event) |
|
71 | { |
|
72 | foreach ($event->whitelistedInstitutions as $whitelistedInstitution) { |
|
73 | $institution = new Institution($whitelistedInstitution->getInstitution()); |
|
74 | ||
75 | if ($this->configuredInstitutionRepository->hasConfigurationFor($institution)) { |
|
76 | continue; |
|
77 | } |
|
78 | ||
79 | $this->createConfigurationFor($institution); |
|
80 | } |
|
81 | } |
|
82 | ||
83 | public function handleWhitelistReplacedEvent(WhitelistReplacedEvent $event) |
|
84 | { |
|
@@ 83-94 (lines=12) @@ | ||
80 | } |
|
81 | } |
|
82 | ||
83 | public function handleWhitelistReplacedEvent(WhitelistReplacedEvent $event) |
|
84 | { |
|
85 | foreach ($event->whitelistedInstitutions as $whitelistedInstitution) { |
|
86 | $institution = new Institution($whitelistedInstitution->getInstitution()); |
|
87 | ||
88 | if ($this->configuredInstitutionRepository->hasConfigurationFor($institution)) { |
|
89 | continue; |
|
90 | } |
|
91 | ||
92 | $this->createConfigurationFor($institution); |
|
93 | } |
|
94 | } |
|
95 | ||
96 | public function handleInstitutionsAddedToWhitelistEvent(InstitutionsAddedToWhitelistEvent $event) |
|
97 | { |