-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Remove zend json from data object #10306
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
Remove zend json from data object #10306
Conversation
…nConverter. - This is only in place for this one use case and should not be used for other times with converting json
…y be used in a single case
@dmanners Why do we need new object with static method? We could add to constructor optional parameter (with fallback to object manager) |
@ihor-sviziev I am more than happy to find another option but unfortunately going the route of adding an optional dependency causes big breaks in the test suite. I am not sure exactly how the object manager changes in the test suite so there could be an option to mock the fallback during the test suite. |
Why do we need to add new behavior with What do you think about deprecating |
@orlangur normally I would like to keep away from the direct calls to |
@okorshenko I did not say a word regarding method removal, just deprecation. As to me static class introduction with comment to use it in only one place is much uglier than simply using |
Hi @okorshenko After all, the new |
Description
The DataObject class has a method
toJson
that usesZend_Json
. Since this at EOF we should replace the usage. Unfortunately in this case that is not so "simple" after some discussion with @okorshenko it was decided to create a new static class for this single case. This should not be used in other places but for this case it is "ok".Fixed Issues (if relevant)
Contribution checklist