Use enums in flag providers and rename NotificationEnum to NotificationFlagEnum

This commit is contained in:
2025-06-18 15:24:12 +02:00
parent acad9d1553
commit cf391d60fe
14 changed files with 35 additions and 28 deletions

View File

@@ -12,7 +12,7 @@ declare(strict_types=1);
namespace Chill\MainBundle\Workflow\EventSubscriber;
use Chill\MainBundle\Entity\Notification;
use Chill\MainBundle\Entity\NotificationEnum;
use Chill\MainBundle\Entity\NotificationFlagEnum;
use Chill\MainBundle\Entity\User;
use Chill\MainBundle\Entity\UserGroup;
use Chill\MainBundle\Entity\Workflow\EntityWorkflow;
@@ -127,7 +127,7 @@ class NotificationOnTransition implements EventSubscriberInterface
->setTitle($this->engine->render('@ChillMain/Workflow/workflow_notification_on_transition_completed_title.fr.txt.twig', $context))
->setMessage($this->engine->render('@ChillMain/Workflow/workflow_notification_on_transition_completed_content.fr.txt.twig', $context))
->addAddressee($subscriber)
->setType(NotificationEnum::WORKFLOW_TRANS);
->setType(NotificationFlagEnum::WORKFLOW_TRANS);
$this->entityManager->persist($notification);
}
}