Refactor PersonCreate flow to introduce PersonCreateDTO

- Replaced `Person` entity binding with `PersonCreateDTO` in `CreationPersonType` to enable better data handling.
- Added `PersonCreateDTOFactory` for creating and mapping `PersonCreateDTO` instances.
- Extracted `newAction` logic into `PersonCreateController` for clearer separation of responsibilities.
- Updated `PersonIdentifiersDataMapper` and `PersonIdentifierWorker` to support default identifier values.
- Adjusted related services, configurations, and templates accordingly.
This commit is contained in:
2025-10-21 14:24:43 +02:00
parent e9e6c05e3d
commit 870907804b
10 changed files with 396 additions and 175 deletions

View File

@@ -70,4 +70,9 @@ final readonly class StringIdentifier implements PersonIdentifierEngineInterface
return $violations;
}
public function getDefaultValue(PersonIdentifierDefinition $definition): array
{
return ['content' => ''];
}
}