mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-20 14:43:49 +00:00
notification: fix NotificationHandlerInterface
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user