-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Plugins in \Magento\Framework namespace #27962
Copy link
Copy link
Closed
Labels
Component: Framework/AppComponent: Framework/ModuleFixed in 2.4.xThe issue has been fixed in 2.4-develop branchThe issue has been fixed in 2.4-develop branchIssue: Clear DescriptionGate 2 Passed. Manual verification of the issue description passedGate 2 Passed. Manual verification of the issue description passedIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedIssue: Format is validGate 1 Passed. Automatic verification of issue format passedGate 1 Passed. Automatic verification of issue format passedIssue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentGate 4. Acknowledged. Issue is added to backlog and ready for developmentPriority: P3May be fixed according to the position in the backlog.May be fixed according to the position in the backlog.Progress: doneReported on 2.4.0Indicates original Magento version for the Issue report.Indicates original Magento version for the Issue report.Reproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branchThe issue has been reproduced on latest 2.4-develop branchSeverity: S3Affects non-critical data or functionality and does not force users to employ a workaround.Affects non-critical data or functionality and does not force users to employ a workaround.Triage: Dev.ExperienceIssue related to Developer Experience and needs help with Triage to Confirm or Reject itIssue related to Developer Experience and needs help with Triage to Confirm or Reject it
Description
Metadata
Metadata
Assignees
Labels
Component: Framework/AppComponent: Framework/ModuleFixed in 2.4.xThe issue has been fixed in 2.4-develop branchThe issue has been fixed in 2.4-develop branchIssue: Clear DescriptionGate 2 Passed. Manual verification of the issue description passedGate 2 Passed. Manual verification of the issue description passedIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedIssue: Format is validGate 1 Passed. Automatic verification of issue format passedGate 1 Passed. Automatic verification of issue format passedIssue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentGate 4. Acknowledged. Issue is added to backlog and ready for developmentPriority: P3May be fixed according to the position in the backlog.May be fixed according to the position in the backlog.Progress: doneReported on 2.4.0Indicates original Magento version for the Issue report.Indicates original Magento version for the Issue report.Reproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branchThe issue has been reproduced on latest 2.4-develop branchSeverity: S3Affects non-critical data or functionality and does not force users to employ a workaround.Affects non-critical data or functionality and does not force users to employ a workaround.Triage: Dev.ExperienceIssue related to Developer Experience and needs help with Triage to Confirm or Reject itIssue related to Developer Experience and needs help with Triage to Confirm or Reject it
Type
Fields
No fields configured for issues without a type.
Projects
StatusShow more project fields
Done
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\Frameworknamespace. 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\Frameworkwere 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 (*)