-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
Convert MageBraintree to use the serializer rather than Zend_Json #8393
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Currently we can not accept majority of the changes which modify the constructor signature.
This requirement is introduced to maintain maximum compatibility with already existing extensions and customizations, potentially relying on the class via extending.
@dmanners Currently we can not accept majority of the changes which modify the constructor signature. To add a new parameter to the constructor you may introduce it as optional, for example: public function __construct(
\Magento\Framework\Serialize\SerializerInterface $serializer = null
) {
$this->serializer = $serialize ?: \Magento\Framework\App\ObjectManager::getInstance()->get(\Magento\Framework\Serialize\SerializerInterface::class);
} |
Thanks for the feedback @ishakhsuvarov I guess that covers all the other zend_json PRs I have put in over the last few days. |
@dmanners Thank you for the update. We are going to proceed with processing now. |
8d7c1c8
to
bc33464
Compare
@dmanners Thank you for your contribution to Magento 2 project! Your pull request has been successfully merged! For some reason, we have different your commit hashes that's why this PR is not closed. But your changes already on develop branch. Thank you |
@okorshenko thanks. It is probably cause I like to keep my branches up to date and regularly rebase them. You may have merged an older version or something. No issue there as there where no new commits added after the rebase. |
…fix-07112023 cia-2.4.7-beta2-develop-bugfix-07112023
As Zend1 is end of life usage of Zend_Json should be converted to the internal serializer in Magento2