notification: fix NotificationHandlerInterface

This commit is contained in:
2022-01-04 17:55:34 +01:00
parent f76f7a1641
commit d31661ae7a
4 changed files with 27 additions and 11 deletions

View File

@@ -25,12 +25,12 @@ final class AccompanyingPeriodNotificationHandler implements NotificationHandler
$this->accompanyingPeriodRepository = $accompanyingPeriodRepository;
}
public function getTemplate()
public function getTemplate(array $options = []): string
{
return 'ChillPersonBundle:AccompanyingPeriod:showInNotification.html.twig';
}
public function getTemplateData(Notification $notification)
public function getTemplateData(Notification $notification, array $options = []): array
{
return [
'notification' => $notification,
@@ -38,7 +38,7 @@ final class AccompanyingPeriodNotificationHandler implements NotificationHandler
];
}
public function supports(Notification $notification)
public function supports(Notification $notification, array $options = []): bool
{
return $notification->getRelatedEntityClass() === AccompanyingPeriod::class;
}