mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-10-09 23:09:43 +00:00
Use enums in flag providers and rename NotificationEnum to NotificationFlagEnum
This commit is contained in:
@@ -12,7 +12,7 @@ declare(strict_types=1);
|
||||
namespace Chill\PersonBundle\AccompanyingPeriod\Events;
|
||||
|
||||
use Chill\MainBundle\Entity\Notification;
|
||||
use Chill\MainBundle\Entity\NotificationEnum;
|
||||
use Chill\MainBundle\Entity\NotificationFlagEnum;
|
||||
use Chill\MainBundle\Entity\User;
|
||||
use Chill\MainBundle\Notification\NotificationPersisterInterface;
|
||||
use Chill\PersonBundle\Entity\AccompanyingPeriod;
|
||||
@@ -75,7 +75,7 @@ class UserRefEventSubscriber implements EventSubscriberInterface
|
||||
]
|
||||
))
|
||||
->addAddressee($period->getUser())
|
||||
->setType(NotificationEnum::REFERRER_ACC_COURSE);
|
||||
->setType(NotificationFlagEnum::REFERRER_ACC_COURSE);
|
||||
|
||||
$this->notificationPersister->persist($notification);
|
||||
}
|
||||
|
Reference in New Issue
Block a user