-
-
Notifications
You must be signed in to change notification settings - Fork 26
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
Deprecate InlineConstraint and validator #333
Comments
It is still used on PageBundle and MediaBundle to validate medias and pages. So probably not that easy to deprecate. |
I didnt take a look but cant we just replace the usage by the "constraints" option on form ? |
I think we could try to replace it for the Callback constraint from Symfony, but haven't tried yet. |
I remove the milestone since it won't be done for 2.0, it requires changes on another bundles that are already released (MediaBundle) |
Can't we remove the usage in a BC way ? Looking at the usage we just have to
This way, support for 1.x || 2.x is possible with the empty method
|
To me there is a previous step:
If we don't change the deprecated code first, we could end up in a situation where we deprecated something that cannot be done with another solution. |
Feature Request
I think it can be deprecated. It's usage was deprecated on SonataAdminBundle 3.x.
We need to look for usage on another Sonata bundles.
Maybe ErrorElement too (but not sure about that one).
The text was updated successfully, but these errors were encountered: