Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[RFC][Validator] PHP-based configuration for Validator #37420

Closed
ajgarlag opened this issue Jun 26, 2020 · 6 comments
Closed

[RFC][Validator] PHP-based configuration for Validator #37420

ajgarlag opened this issue Jun 26, 2020 · 6 comments
Labels
Feature RFC RFC = Request For Comments (proposals about features that you want to be discussed) Stalled Validator

Comments

@ajgarlag
Copy link
Contributor

Description
Now that #37186 has been finally completed, I'd like to have a similar PHP-based format to configure Validator Constraints.

Actually, there are four ways to configure these constraints:

  • Modifying the file containing the class to validate:
    • Using Annotations
    • Using a public static method
  • Defining these constraints in external files:
    • Using YAML format
    • Using XML format

Could we have a PHP format to define these constraints in external files?

@javiereguiluz javiereguiluz added Feature RFC RFC = Request For Comments (proposals about features that you want to be discussed) Validator labels Jun 26, 2020
@Neirda24
Copy link
Contributor

Will it be worth it knowing that PHP attributes are coming in 8.0 ? What I mean is: a lot of tools will be migrating annotations to attributes. Doing so is going full PHP. At that point creating a PHP way of declaring constraints could be easier I think ?

@carsonbot
Copy link

Thank you for this suggestion.
There has not been a lot of activity here for a while. Would you still like to see this feature?

@ajgarlag
Copy link
Contributor Author

ajgarlag commented Mar 1, 2021

Yes, I'd like to see this feature implemented.

@carsonbot carsonbot removed the Stalled label Mar 1, 2021
@carsonbot
Copy link

Thank you for this suggestion.
There has not been a lot of activity here for a while. Would you still like to see this feature?

@carsonbot
Copy link

Just a quick reminder to make a comment on this. If I don't hear anything I'll close this.

@carsonbot
Copy link

Hey,

I didn't hear anything so I'm going to close it. Feel free to comment if this is still relevant, I can always reopen!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature RFC RFC = Request For Comments (proposals about features that you want to be discussed) Stalled Validator
Projects
None yet
Development

No branches or pull requests

4 participants