Skip to content

[Validator] Remove necessity to set constraint_validator alias #16805

Closed
@webmozart

Description

@webmozart

Right now, when adding a constraint validator to the DI configuration, you need to do:

services:
    my_validator:
        class: Acme\Constraints\MyValidator
        tags:
            - { name: validator.constraint_validator, alias: Acme\Constraints\MyValidator }

It should not be necessary to pass that alias, but right now it is.

Metadata

Metadata

Assignees

No one assigned

    Labels

    DXDX = Developer eXperience (anything that improves the experience of using Symfony)Good first issueIdeal for your first contribution! (some Symfony experience may be required)Validator

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions