mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
Rmq Julien & Pol
This commit is contained in:
parent
4fd733dca7
commit
559d3dd756
@ -7,14 +7,14 @@ use Chill\ActivityBundle\Entity\Activity;
|
||||
|
||||
final class ActivityNotificationRenderer
|
||||
{
|
||||
public function supports(Notification $notification)
|
||||
public function supports(Notification $notification, array $options = []): bool
|
||||
{
|
||||
return $notification->getRelatedEntityClass() == Activity::class;
|
||||
}
|
||||
|
||||
public function getTemplate()
|
||||
{
|
||||
return 'ChillActivityBundle:Activity:showInNotification.html.twig';
|
||||
return '@ChillActivity/Activity/showInNotification.html.twig';
|
||||
}
|
||||
|
||||
public function getTemplateData(Notification $notification)
|
||||
|
@ -1,3 +1,4 @@
|
||||
services:
|
||||
Chill\ActivityBundle\Notification\ActivityNotificationRenderer:
|
||||
autoconfigure: true
|
||||
autowire: true
|
||||
|
Loading…
x
Reference in New Issue
Block a user