-
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
Refactoring: Code duplication EmailSender / ShipmentSender and so on #14885
Comments
Hello @amenk, thank you for your report. |
Ran into this, as well. |
0b4d732 |
Hi @rvoronovmeticulosity https://github.com/magento/magento2/blob/2.3-develop/app/code/Magento/Sales/Model/Order/Shipment/Sender/EmailSender.php was introduced to work with data interfaces instead of the concrete model. So I believe https://github.com/magento/magento2/blob/2.3-develop/app/code/Magento/Sales/Model/Order/Email/Sender/ShipmentSender.php can be marked as deprecated and client code refactored to use the new service. |
Hi @engcom-Echo. Thank you for working on this issue.
|
✅ Confirmed by @engcom-Echo Issue Available: @engcom-Echo, You will be automatically unassigned. Contributors/Maintainers can claim this issue to continue. To reclaim and continue work, reassign the ticket to yourself. |
Hi @drpayyne. Thank you for working on this issue.
|
#mm20in |
@vigneshbalasubramani thank you for joining. Please accept team invitation here and self-assign the issue. |
Hi @vigneshbalasubramani. Thank you for working on this issue.
|
Hi @amenk. Thank you for your report.
The fix will be available with the upcoming 2.4.0 release. |
These classes do pretty much the same:
/app/code/Magento/Sales/Model/Order/Shipment/Sender/EmailSender.php
/app/code/Magento/Sales/Model/Order/Email/Sender/ShipmentSender.php
Should be refactored into one.
What is the reason we have two? Which one should be preferred?
Preconditions
Magento 2.4-develop
Steps to reproduce
app/code/Magento/Sales/Model/Order/Shipment/Sender/EmailSender.php
and
app/code/Magento/Sales/Model/Order/Email/Sender/ShipmentSender.php
Expected result
Should have different behaviors, or refactored into one.
Actual result
Two classes almost the same.
The text was updated successfully, but these errors were encountered: