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