|
19 | 19 | namespace Surfnet\StepupMiddleware\ApiBundle\Identity\Projector; |
20 | 20 |
|
21 | 21 | use Broadway\Domain\DomainMessage; |
22 | | -use Broadway\EventHandling\EventListener; |
23 | 22 | use DateTime as CoreDateTime; |
24 | 23 | use Ramsey\Uuid\Uuid; |
25 | 24 | use Surfnet\Stepup\DateTime\DateTime; |
|
33 | 32 | use Surfnet\Stepup\Identity\Value\RecoveryTokenIdentifierFactory; |
34 | 33 | use Surfnet\Stepup\Identity\Value\RecoveryTokenType; |
35 | 34 | use Surfnet\Stepup\Identity\Value\VettingType; |
| 35 | +use Surfnet\Stepup\Projector\Projector; |
36 | 36 | use Surfnet\StepupMiddleware\ApiBundle\Exception\RuntimeException; |
37 | 37 | use Surfnet\StepupMiddleware\ApiBundle\Identity\Entity\AuditLogEntry; |
38 | 38 | use Surfnet\StepupMiddleware\ApiBundle\Identity\Entity\Identity; |
|
42 | 42 | /** |
43 | 43 | * @SuppressWarnings(PHPMD.CouplingBetweenObjects) |
44 | 44 | */ |
45 | | -class AuditLogProjector implements EventListener |
| 45 | +class AuditLogProjector extends Projector |
46 | 46 | { |
47 | 47 | public function __construct( |
48 | 48 | private readonly AuditLogRepository $auditLogRepository, |
@@ -138,7 +138,7 @@ private function applyAuditableEvent(AuditableEvent $event, DomainMessage $domai |
138 | 138 | $this->auditLogRepository->save($entry); |
139 | 139 | } |
140 | 140 |
|
141 | | - private function applyIdentityForgottenEvent(IdentityForgottenEvent $event): void |
| 141 | + protected function applyIdentityForgottenEvent(IdentityForgottenEvent $event): void |
142 | 142 | { |
143 | 143 | $entries = $this->auditLogRepository->findByIdentityId($event->identityId); |
144 | 144 | foreach ($entries as $auditLogEntry) { |
|
0 commit comments