mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2026-01-01 06:51:23 +00:00
Implement form field for user profile to allow the update of a user's local preference
This commit is contained in:
@@ -18,6 +18,7 @@ final readonly class UpdateProfileCommandHandler
|
||||
public function updateProfile(User $user, UpdateProfileCommand $command): void
|
||||
{
|
||||
$user->setPhonenumber($command->phonenumber);
|
||||
$user->setLocale($command->locale);
|
||||
|
||||
foreach ($command->notificationFlags as $flag => $values) {
|
||||
$user->setNotificationImmediately($flag, $values['immediate_email']);
|
||||
|
||||
Reference in New Issue
Block a user