Refactory to Magento_Backend module class.#17101
Refactory to Magento_Backend module class.#17101magento-engcom-team merged 3 commits intomagento:2.2-developfrom tiagosampaio:2.2-develop-009
Conversation
|
Hi @tiagosampaio. Thank you for your contribution
For more details, please, review the Magento Contributor Assistant documentation |
| * @var \Magento\Reports\Model\ResourceModel\Order\Collection | ||
| */ | ||
| protected $_orderCollection; | ||
| private $orderCollection; |
There was a problem hiding this comment.
This change is not backward compatible. Please revert it.
More details: https://devdocs.magento.com/guides/v2.2/contributor-guide/backward-compatible-development/
| * @since 100.0.6 | ||
| */ | ||
| protected $_storeManager; | ||
| private $storeManager; |
There was a problem hiding this comment.
This change is not backward compatible. Please revert it.
More details: https://devdocs.magento.com/guides/v2.2/contributor-guide/backward-compatible-development
| \Magento\Framework\App\Helper\Context $context, | ||
| \Magento\Reports\Model\ResourceModel\Order\Collection $orderCollection | ||
| \Magento\Reports\Model\ResourceModel\Order\Collection $orderCollection, | ||
| \Magento\Store\Model\StoreManagerInterface $storeManager |
There was a problem hiding this comment.
Please make new constructor argument optional and as retrieve it by fallback from object manager.
More details: https://devdocs.magento.com/guides/v2.2/contributor-guide/backward-compatible-development
|
@ihor-sviziev changes were reverted. |
ihor-sviziev
left a comment
There was a problem hiding this comment.
In general looks good, but there still backward incompatible changes
| * @var \Magento\Reports\Model\ResourceModel\Order\Collection | ||
| */ | ||
| protected $_orderCollection; | ||
| private $_orderCollection; |
There was a problem hiding this comment.
Please revert this change, it's not backward compatible
| * @since 100.0.6 | ||
| */ | ||
| protected $_storeManager; | ||
| private $_storeManager; |
There was a problem hiding this comment.
Please revert this change, it's not backward compatible
Revert backward incompatible changes
|
I fixed these small issues myself. Let's wait for Travis results |
|
Hi @ihor-sviziev, thank you for the review. |
|
Thanks @ihor-sviziev. |
|
Hi @tiagosampaio. Thank you for your contribution. Please, consider to port this solution to 2.3 release line. |
Refactory of a class in Magento_Backend module.
Description
Simple refactory to Magento_Backend module class.
Contribution checklist