-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Replaced usage of ObjectManager with Constructor DI of Factory class #24661
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
Conversation
Hi @drpayyne. Thank you for your contribution
For more details, please, review the Magento Contributor Guide documentation. |
fdbf468
to
33733d3
Compare
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.
Use return types too :)
61356a5
to
79c9692
Compare
@drpayyne unfortunately, only members of the maintainers team are allowed to remove progress related labels to the pull request |
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 @drpayyne,
Please review my comments, once you'll finish - please squash all your changes to single commit & force push them.
Thank you!
79c9692
to
3f13b08
Compare
9900833
to
9be9930
Compare
9be9930
to
2b5b739
Compare
Hi @ihor-sviziev, thank you for the review. |
Hi @orlangur, thank you for the review. |
✔️ QA Passed |
Hi @drpayyne, thank you for your contribution! |
Description
Fixed the improper usage of ObjectManager to get instance of Factory class in the middle of a method, instead of using Constructor Dependency Injection, in
Magento_Catalog/Controller/Adminhtml/Category/Add
.\Magento\Framework\View\Result\PageFactory
through Constructor DIFixed Issues
Manual testing scenarios
No practical testing, but
Magento_Catalog/Controller/Adminhtml/Category/Add
as described aboveQuestions or comments
Bug fix, as usage of ObjectManager directly in code is prohibited.
Contribution checklist