-
Notifications
You must be signed in to change notification settings - Fork 9.4k
#27962 Migrate Plugin out of Framework (to Theme module) #27965
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
#27962 Migrate Plugin out of Framework (to Theme module) #27965
Conversation
Hi @lbajsarowicz. Thank you for your contribution
For more details, please, review the Magento Contributor Guide documentation. |
Hi @ihor-sviziev, thank you for the review.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @lbajsarowicz,
Could you review failing MHI test and update your PR?
Also I see that you moved just one plugin, could you move all plugins to corresponding modules at once?
Hi @ihor-sviziev, thank you for the review. |
…ugin # Conflicts: # app/code/Magento/Theme/Test/Unit/Plugin/LoadDesignPluginTest.php
@magento run all tests |
Hi @ihor-sviziev, thank you for the review. |
Hi @slavvka, thank you for the review. |
@magento run all tests I'd like to verify if there are no issues with current mainline. |
Hi @lbajsarowicz, thank you for your contribution! |
Description (*)
During my recent changes related to Controllers decomposition, I renamed the existing plugin. Some random Magento Architect says that it was never allowed to add Plugin to
\Magento\Framework
namespace and it was never allowed:I had no idea about that (is there information missing in DevDocs / coding standards / static checks?). So I'm moving plugin out of
\Magento\Framework
area, as it's against Magento Best Practices.(If it was never allowed, why it's there since 2016?)
magento2/lib/internal/Magento/Framework/App/Action/Plugin/Design.php
Lines 6 to 10 in 5f3b86a
Related Pull Requests
Fixed Issues (if relevant)
Manual testing scenarios (*)
N/A
Questions or comments
N/A
Contribution checklist (*)