Details
-
Improvement
-
Resolution: Done
-
Medium
-
None
-
None
Description
Right now validator configuration is part of service definition and is not extensible without compiler pass:
EzSystems\EzPlatformPageFieldType\FieldType\Page\Block\Definition\Attribute\Validator\ConstraintClassRegistry: calls: - ['setConstraintClass', ['required', 'Symfony\Component\Validator\Constraints\Required']] - ['setConstraintClass', ['regexp', 'Symfony\Component\Validator\Constraints\Regex']] - ['setConstraintClass', ['not_blank', 'Symfony\Component\Validator\Constraints\NotBlank']] - ['setConstraintClass', ['content_type', 'EzSystems\EzPlatformPageFieldType\Validator\Constraints\ContentType']] - ['setConstraintClass', ['content_container', 'EzSystems\EzPlatformPageFieldType\Validator\Constraints\ContentContainerType']]
It should be moved to extensible configuration.