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

Implementing a Symfony constraint based on this library #125

Closed
johanwilfer opened this issue Nov 20, 2020 · 2 comments
Closed

Implementing a Symfony constraint based on this library #125

johanwilfer opened this issue Nov 20, 2020 · 2 comments

Comments

@johanwilfer
Copy link

We have been using this great library for a while now, and I have begun to extract some code we have in a few classes for this to something more generic and useful. Today we are using Symfony and a callback validator, but I am extracting it into a separate class like described here: https://symfony.com/doc/current/validation/custom_constraint.html

Would a PR be welcome with this functionality? Any pointers on how / where you like it?
I am thinking it will take a string input like this SE12345678901 and do the validation using this library.

@DragonBe
Copy link
Owner

DragonBe commented Apr 3, 2021

As mentioned in the README, there is already a Symfony bundle available. See MyOnlineStore ViesBundle.

@johanwilfer
Copy link
Author

Ah, I missed that. Thanks! Will close this and make a PR for that library instead then.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants