Skip to content

[Validator] Inform developer if componant is missing #37012

@Seb33300

Description

@Seb33300

Symfony version(s) affected: 5.0.8

Description
I started a new Symfony 5 project and I wanted to enable the automatic validation feature in my validator config file:

framework:
    validation:
        # Enables validator auto-mapping support.
        # For instance, basic validation constraints will be inferred from Doctrine's metadata.
        auto_mapping:
            App\Entity\: []

But automatic validation was not working after that.
This was because as mentioned in the blog post, this feature require PropertyInfo component to work.

Maybe we should trigger an exception to informed the developer if this option is enabled but the component is not installed?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions