-
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
Upgrade ZF components. Zend_Service #9243
Comments
Hi @okorshenko I did some digging into this issue and here is what I found. As far as I can see the mention to \Zend_Service is incorrect and might be a bug/wrong in Zend Framwork. If you look into the \Zend_Currency class you see that it only allows for Zend_Currency_CurrencyInterface classes to be passed to the setService function. So the getService can only return a class which implements this interface.
I was also checking how Magento handles the fetching of the currency rates (that is what these functions are for) from and external service. I see this is done in the \Magento\Directory\Model\Currency\Import namespace and does not go truth this code. How do you want to handle this?
|
No activity. Closing the issue |
Hi @dverkade
It would be great if you can submit PR to Please, let me know if you have any questions. |
Hi @okorshenko. Thank you for your report. The fix will be available with the upcoming patch release. |
Hi @okorshenko. Thank you for your report. The fix will be available with the upcoming patch release. |
Description
Upgrade components from ZF1 to ZF2
As a long term goal, we would like to eliminate knowledge about 3rd party libraries from Magento code base. Magento code still can use 3rd party libraries, but they must be wrapped by Magento interfaces and classes (adapters) so that 3rd party libraries can be easily substituted by newest versions or alternative implementations.
Acceptance Criteria
List of the components
(total usages count)
The text was updated successfully, but these errors were encountered: