mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-09-07 15:25:00 +00:00
notification: fix NotificationHandlerInterface
This commit is contained in:
@@ -11,6 +11,22 @@ declare(strict_types=1);
|
||||
|
||||
namespace Chill\MainBundle\Notification;
|
||||
|
||||
use Chill\MainBundle\Entity\Notification;
|
||||
|
||||
interface NotificationHandlerInterface
|
||||
{
|
||||
/**
|
||||
* Return the template path (twig file).
|
||||
*/
|
||||
public function getTemplate(array $options = []): string;
|
||||
|
||||
/**
|
||||
* Return an array which will be passed as data for the template.
|
||||
*/
|
||||
public function getTemplateData(Notification $notification, array $options = []): array;
|
||||
|
||||
/**
|
||||
* Return true if the handler supports the handling for this notification.
|
||||
*/
|
||||
public function supports(Notification $notification, array $options = []): bool;
|
||||
}
|
||||
|
Reference in New Issue
Block a user