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

Use DI to replace validator service used in symfony validator #9

Conversation

jkobus
Copy link
Contributor

@jkobus jkobus commented Dec 3, 2023

The problem:

VatNumberValidator uses "new" instead of autowiring, therefore I'm unable to replace service with different Vies Client (rest).

This change will make this possible.

Please review it and let me know if it needs adjustments.

I also added intl and soap extensions as after composer install these are actually required during development.

I tested the dev branch in my app and can confirm it works as expected.

@jkobus jkobus force-pushed the service-replacement-for-symfony-validator branch from cee5ae1 to 1c79eac Compare December 3, 2023 13:22
@dannyvankooten dannyvankooten merged commit bc9eba5 into ibericode:master Dec 3, 2023
2 checks passed
@jkobus jkobus deleted the service-replacement-for-symfony-validator branch December 4, 2023 14:42
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

Successfully merging this pull request may close these issues.

2 participants