This commit is contained in:
2022-04-22 11:41:38 +02:00
parent abc3caee00
commit f7d9551dc1
6 changed files with 53 additions and 16 deletions

View File

@@ -15,7 +15,6 @@ use Chill\MainBundle\Entity\Notification;
use Chill\MainBundle\Entity\User;
use Chill\MainBundle\Notification\NotificationPersisterInterface;
use Chill\PersonBundle\Entity\AccompanyingPeriod;
use Doctrine\ORM\EntityManagerInterface;
use Doctrine\Persistence\Event\LifecycleEventArgs;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;
use Symfony\Component\Security\Core\Security;
@@ -25,11 +24,10 @@ use Symfony\Contracts\Translation\TranslatorInterface;
class UserRefEventSubscriber implements EventSubscriberInterface
{
private EngineInterface $engine;
private NotificationPersisterInterface $notificationPersister;
private EngineInterface $engine;
private Security $security;
private TranslatorInterface $translator;

View File

@@ -41,8 +41,8 @@ class Comment implements TrackCreationInterface, TrackUpdateInterface
/**
* @ORM\Column(type="text")
* @Groups({"read", "write"})
* @Assert\NotBlank()
* @Assert\NotNull()
* @Assert\NotBlank
* @Assert\NotNull
*/
private $content;