mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-28 02:23:51 +00:00
notificaiton: improve NotificationHandlerInterface + mark notification
as unread if a comment is appended
This commit is contained in:
@@ -18,7 +18,7 @@ interface NotificationHandlerInterface
|
||||
/**
|
||||
* Return the template path (twig file).
|
||||
*/
|
||||
public function getTemplate(array $options = []): string;
|
||||
public function getTemplate(Notification $notification, array $options = []): string;
|
||||
|
||||
/**
|
||||
* Return an array which will be passed as data for the template.
|
||||
|
@@ -45,7 +45,7 @@ final class NotificationHandlerManager
|
||||
|
||||
public function getTemplate(Notification $notification, array $options = []): string
|
||||
{
|
||||
return $this->getHandler($notification, $options)->getTemplate($options);
|
||||
return $this->getHandler($notification, $options)->getTemplate($notification, $options);
|
||||
}
|
||||
|
||||
public function getTemplateData(Notification $notification, array $options = []): array
|
||||
|
Reference in New Issue
Block a user