| @@ 191-203 (lines=13) @@ | ||
| 188 | * @param RegistrationAuthorityRetractedForInstitutionEvent $event |
|
| 189 | * @return void |
|
| 190 | */ |
|
| 191 | public function applyRegistrationAuthorityRetractedForInstitutionEvent(RegistrationAuthorityRetractedForInstitutionEvent $event) |
|
| 192 | { |
|
| 193 | $candidate = RaCandidate::nominate( |
|
| 194 | $event->identityId, |
|
| 195 | $event->identityInstitution, |
|
| 196 | $event->nameId, |
|
| 197 | $event->commonName, |
|
| 198 | $event->email, |
|
| 199 | $event->raInstitution |
|
| 200 | ); |
|
| 201 | ||
| 202 | $this->raCandidateRepository->merge($candidate); |
|
| 203 | } |
|
| 204 | ||
| 205 | protected function applyIdentityForgottenEvent(IdentityForgottenEvent $event) |
|
| 206 | { |
|
| @@ 249-261 (lines=13) @@ | ||
| 246 | * @param RegistrationAuthorityRetractedEvent $event |
|
| 247 | * @return void |
|
| 248 | */ |
|
| 249 | public function applyRegistrationAuthorityRetractedEvent(RegistrationAuthorityRetractedEvent $event) |
|
| 250 | { |
|
| 251 | $candidate = RaCandidate::nominate( |
|
| 252 | $event->identityId, |
|
| 253 | $event->identityInstitution, |
|
| 254 | $event->nameId, |
|
| 255 | $event->commonName, |
|
| 256 | $event->email, |
|
| 257 | $event->raInstitution |
|
| 258 | ); |
|
| 259 | ||
| 260 | $this->raCandidateRepository->merge($candidate); |
|
| 261 | } |
|
| 262 | ||
| 263 | /** |
|
| 264 | * @param Institution $institution |
|