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
|
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)
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
services:
|
services:
|
||||||
Chill\ActivityBundle\Notification\ActivityNotificationRenderer:
|
Chill\ActivityBundle\Notification\ActivityNotificationRenderer:
|
||||||
|
autoconfigure: true
|
||||||
autowire: true
|
autowire: true
|
||||||
|
Loading…
x
Reference in New Issue
Block a user