-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Validator] There is no way to add custom validator loader since symfony 2.5 #18930
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
Comments
@hurricane-voronin Can you explain the problem you face in more detail? What do you try to solve and why does it not work? |
@hurricane-voronin any feedback? |
Hi there, |
That explains what you are trying to do. But it's still not clear to me how you tried to solve your issue and where you were stuck or what did not work. |
Before 9b204c93544532ebac27e6b500de22a2599fab7e changes there was a possibility to add custom validator loader to For now as a workaround, the easiest way is to override |
There is indeed to other way than replacing the |
Well, the fact that we use this ValidatorBuilder to instantiate loaders instead of using the DIC means we don't allow using the container extension points (compiler passes) to hook into this. That's the only component where we do this. |
|
…uple symfony/validator from symfony/translation (nicolas-grekas) This PR was merged into the 4.2-dev branch. Discussion ---------- [Contracts] Add Translation\TranslatorInterface + decouple symfony/validator from symfony/translation | Q | A | ------------- | --- | Branch? | master | Bug fix? | no | New feature? | yes | BC breaks? | no | Deprecations? | yes | Tests pass? | yes | Fixed tickets | #15714, #18930 | License | MIT | Doc PR | - Let's decouple Validator from Translation component \o/! TODO: - [x] add `TranslatorInterface`, deprecate it from Translation - [x] add `TranslatorTrait`, deprecating `MessageSelector`, `Internal` and `PluralizationRules` - [x] deprecate `ValidatorBuilderInterface(LegacyTranslatorInterface)` - [x] inject a new `identity_translator` into `translator.formatter.default`, deprecate `translator.selector` - [x] copy tests in the Contracts namespace to ensure the `TranslatorTrait` behaves properly - [x] figure out a way to keep throwing `InvalidArgumentException` from the component - [x] update UPGRADING and CHANGELOG files - [x] polish the deprecation layer (ensure all needed runtime deprecations are here) Reviews welcome already. Commits ------- 064e369 [Contracts] Add Translation\TranslatorInterface + decouple symfony/validator from symfony/translation
Hi,
Relates to the issue #9144.
Since symfony 2.5 there is no way to add custom validator loader.
Could you help with this?
The text was updated successfully, but these errors were encountered: