From 559d3dd7569bf42366867683d779e11db7c9adbc Mon Sep 17 00:00:00 2001 From: Marc Ducobu Date: Wed, 30 Jun 2021 11:33:19 +0200 Subject: [PATCH] Rmq Julien & Pol --- .../Notification/ActivityNotificationRenderer.php | 4 ++-- .../ChillActivityBundle/config/services/notification.yaml | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Bundle/ChillActivityBundle/Notification/ActivityNotificationRenderer.php b/src/Bundle/ChillActivityBundle/Notification/ActivityNotificationRenderer.php index f1134d421..1836f599b 100644 --- a/src/Bundle/ChillActivityBundle/Notification/ActivityNotificationRenderer.php +++ b/src/Bundle/ChillActivityBundle/Notification/ActivityNotificationRenderer.php @@ -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) diff --git a/src/Bundle/ChillActivityBundle/config/services/notification.yaml b/src/Bundle/ChillActivityBundle/config/services/notification.yaml index e3667550c..3db168ecd 100644 --- a/src/Bundle/ChillActivityBundle/config/services/notification.yaml +++ b/src/Bundle/ChillActivityBundle/config/services/notification.yaml @@ -1,3 +1,4 @@ services: Chill\ActivityBundle\Notification\ActivityNotificationRenderer: + autoconfigure: true autowire: true