feat: local user registration

This commit is contained in:
Björn Fromme committed 2026-06-23 16:27:08 +02:00
1 parent 8bb7f08074
commit 161029ec7c
29 files changed
+1549 -601

No files matched your search

+35
View File
@@ -0,0 +1,35 @@
<?php
declare(strict_types=1);
namespace App\Service;
use App\Entity\User;
final class UserBootstrapper
{
/**
* @param list<string> $roles
* @param list<string> $hotelCodes
*/
public function bootstrap(
User $user,
string $passwordHash,
?int $addressId,
?int $personId,
array $roles,
array $hotelCodes,
bool $profileComplete,
): User {
$user
->setPassword($passwordHash)
->setPersonId($personId)
->setAddressId($addressId)
->setRoles($roles)
->setHotelCodes($hotelCodes)
->setProfileComplete($profileComplete)
;
return $user;
}
}