Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-31809

Move block validators map from service definition to configuration

    XMLWordPrintable

Details

    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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            slawomir.uchto@ibexa.co Sławomir Dołżycki-Uchto
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: