fix : fix UserOutput type and use UserRepositoryInterface in CreateUserCommand

Change UserOutput.id from int to ?int to match User::getId() return type.
Replace EntityManagerInterface with UserRepositoryInterface in CreateUserCommand.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Matthieu
2026-04-09 14:16:14 +02:00
parent 999cccabaf
commit 180bc5c556
2 changed files with 4 additions and 5 deletions

View File

@@ -10,7 +10,7 @@ use DateTimeImmutable;
final readonly class UserOutput
{
public function __construct(
public int $id,
public ?int $id,
public string $username,
/** @var list<string> */
public array $roles,