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

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy