-
-
Notifications
You must be signed in to change notification settings - Fork 587
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Deprecated usage of ValidatorInterface #438
Comments
Not sure this message makes sense, we are already using this interface? |
Seems yes. See your SymfonyValidatorSubscriber class. 👍 |
Well, given the API used in this subscriber, it is very easy to support both the old and the new validator interfaces: just accept both in the constructor. The API used in the code is common to both versions (the old API has more optional args in its |
@stof Yes, but it use groups arguments that is not the second parameter on the new interface. Have to check that. |
Ah indeed. I missed the fact that the second argument was used. It is the third argument in the new API. |
solved in #682 |
Concerned file: https://github.com/schmittjoh/serializer/blob/master/src/JMS/Serializer/EventDispatcher/Subscriber/SymfonyValidatorSubscriber.php#L30
Related notice:
As this class is passed on the constructor, don't really know how to manage it.
Maybe create a legacy class? Where this class is used?
Regards
The text was updated successfully, but these errors were encountered: