implement event settings

This commit is contained in:
ghost 2023-10-11 22:34:47 +03:00
parent d4fbb4b592
commit 7aa2c03abc
14 changed files with 657 additions and 171 deletions

View file

@ -28,8 +28,10 @@ class UserService
string $added,
string $locale,
array $locales,
array $events,
string $theme,
bool $sensitive = true,
bool $yggdrasil = true,
bool $approved = false,
bool $moderator = false,
bool $status = true
@ -70,10 +72,18 @@ class UserService
$theme
);
$user->setEvents(
$events
);
$user->setSensitive(
$sensitive
);
$user->setYggdrasil(
$yggdrasil
);
$this->entityManagerInterface->persist($user);
$this->entityManagerInterface->flush();