mirror of
https://github.com/YGGverse/YGGtracker.git
synced 2026-04-01 01:25:39 +00:00
implement event settings
This commit is contained in:
parent
d4fbb4b592
commit
7aa2c03abc
14 changed files with 657 additions and 171 deletions
|
|
@ -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();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue