-
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
Plugins in \Magento\Framework namespace #27962
Comments
Hi @lbajsarowicz. Thank you for your report.
Please make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, please, add a comment to the issue:
For more details, please, review the Magento Contributor Assistant documentation. @lbajsarowicz do you confirm that you were able to reproduce the issue on vanilla Magento instance following steps to reproduce?
|
Hi @ihor-sviziev. Thank you for working on this issue.
|
@ihor-sviziev Thank you for verifying the issue. Unfortunately, not enough information was provided to acknowledge ticket. Please consider adding the following:
Once all required information is added, please add label |
✅ Confirmed by @ihor-sviziev Issue Available: @ihor-sviziev, You will be automatically unassigned. Contributors/Maintainers can claim this issue to continue. To reclaim and continue work, reassign the ticket to yourself. |
Hi @maghamed. Thank you for working on this issue.
|
Fixed the |
Hi @lbajsarowicz. Thank you for your report.
The fix will be available with the upcoming 2.4.1 release. |
I also found 2 plugins in the commerce edition, and they are exactly the same vendor/magento/module-scalable-checkout/etc/di.xml <type name="Magento\Framework\Model\ResourceModel\Db\ObjectRelationProcessor">
<plugin name="object_constraints_resolver" type="Magento\Framework\ForeignKey\ObjectRelationProcessor\Plugin" />
</type> vendor/magento/module-scalable-oms/etc/di.xml <type name="Magento\Framework\Model\ResourceModel\Db\ObjectRelationProcessor">
<plugin name="object_constraints_resolver" type="Magento\Framework\ForeignKey\ObjectRelationProcessor\Plugin" />
</type> |
@DmitryFurs feel free to fill the separate issue in corresponding repository and / or create Pull Request |
@ihor-sviziev this applies to commerce edition. Is this the right place to create a issue? |
@sidolov @gabrieldagama could you help with reporting issue to Commerce version? |
@DmitryFurs As long as you are Magento partner, you are able to access:
If you don't have access, working with Magento partner, please reach out to @magento/community-engineering-team |
Preconditions (*)
One of Magento Architects contacted me in private message blaming me for introducing Plugin to the Core that is not allowed in Magento and couldn't have been done by Magento Employees due to Quality Standards.
magento2/lib/internal/Magento/Framework/App/Action/Plugin/Design.php
Lines 6 to 10 in 5f3b86a
lol.
As I've introduced another 2 plugins and renamed existing one to follow the naming convention, there are 3 plugins in the
\Magento\Framework
namespace. As the architect wasn't so nice to tell me where outside \Magento\Framework` I should put these plugins, I create issue to satisfy "Quality Standards" of Magento.The plugins to be moved:
https://github.com/magento/magento2/tree/2.4-develop/lib/internal/Magento/Framework/App/Action/Plugin
Before you continue, please remember that plugins in
\Magento\Framework
were never allowed!🤦 🤦♂️ 🤦♀️ 🤦 🤦♂️ 🤦♀️ 🤦 🤦♂️ 🤦♀️ 🤦 🤦♂️ 🤦♀️
magento2/lib/internal/Magento/Framework/Module/Plugin/DbStatusValidator.php
Lines 6 to 18 in 5f3b86a
magento2/app/etc/di.xml
Lines 1805 to 1807 in 892dee4
https://github.com/magento/partners-magento2ee/blob/6d49dacca99f5276f09bbddd50866440f3d3fccc/app/code/Magento/ScalableCheckout/etc/di.xml#L34-L36
magento2/app/code/Magento/Amqp/etc/di.xml
Lines 9 to 17 in ae99625
magento2/app/code/Magento/Eav/etc/di.xml
Lines 108 to 110 in 4b66b00
magento2/app/code/Magento/Store/etc/di.xml
Lines 36 to 38 in d938e7b
Steps to reproduce (*)
N/A
Expected result (*)
Magento Framework shouldn't contain any plugins
Actual result (*)
The text was updated successfully, but these errors were encountered: