Skip to content
This repository was archived by the owner on Apr 29, 2019. It is now read-only.

94: Remove Zend_Service Dependency from CurrencyInterface #105

Conversation

szreka
Copy link
Contributor

@szreka szreka commented Mar 24, 2018

Description

Magento\Framework\CurrencyInterface indicates a dependency on Zend_Service. This is the only dependency on Zend_Service within Magento. Additionally, this dependency is only used to perform currency conversion within an instance of Zend_Currency. This feature is not currently supported or used within Magento, and could be removed safely.

Fixed Issues (if relevant)

#94: Remove Zend_Service Dependency from CurrencyInterface

Contribution checklist

  • Remove getService() method from CurrencyInterface
  • Remove setService() method from CurrencyInterface

@buskamuza
Copy link
Contributor

As this was the last usage of Zend_Service in Magento, it would be good to add a test like https://github.com/magento-engcom/php-7.2-support/pull/102/files#diff-335661b400dfc2da0568abb0cd5cb815 to ensure a dependency doesn't appear again.

@bbatsche bbatsche self-assigned this Mar 28, 2018
@bbatsche bbatsche merged commit f682f5c into magento-engcom:2.3-develop Apr 4, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants