mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2026-01-14 05:11:23 +00:00
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:
@@ -70,4 +70,9 @@ final readonly class StringIdentifier implements PersonIdentifierEngineInterface
|
||||
|
||||
return $violations;
|
||||
}
|
||||
|
||||
public function getDefaultValue(PersonIdentifierDefinition $definition): array
|
||||
{
|
||||
return ['content' => ''];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user