Rmq Julien & Pol

This commit is contained in:
Marc Ducobu 2021-06-30 11:33:19 +02:00
parent 4fd733dca7
commit 559d3dd756
2 changed files with 3 additions and 2 deletions

View File

@ -7,14 +7,14 @@ use Chill\ActivityBundle\Entity\Activity;
final class ActivityNotificationRenderer final class ActivityNotificationRenderer
{ {
public function supports(Notification $notification) public function supports(Notification $notification, array $options = []): bool
{ {
return $notification->getRelatedEntityClass() == Activity::class; return $notification->getRelatedEntityClass() == Activity::class;
} }
public function getTemplate() public function getTemplate()
{ {
return 'ChillActivityBundle:Activity:showInNotification.html.twig'; return '@ChillActivity/Activity/showInNotification.html.twig';
} }
public function getTemplateData(Notification $notification) public function getTemplateData(Notification $notification)

View File

@ -1,3 +1,4 @@
services: services:
Chill\ActivityBundle\Notification\ActivityNotificationRenderer: Chill\ActivityBundle\Notification\ActivityNotificationRenderer:
autoconfigure: true
autowire: true autowire: true