-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Remove direct use of object manager #23020
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
Remove direct use of object manager #23020
Conversation
Hi @AnshuMishra17. Thank you for your contribution
For more details, please, review the Magento Contributor Assistant documentation |
*/ | ||
public function __construct( | ||
Context $context, | ||
PageFactory $resultPageFactory | ||
PageFactory $resultPageFactory, | ||
DataPersistorInterface $dataPersistor |
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.
DataPersistorInterface $dataPersistor | |
DataPersistorInterface $dataPersistor = null |
To make it an optional backward compatible argument
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.
Thanks @atishgoswami
I have updated the code as per the suggestion.
Hi @orlangur, thank you for the review. |
✔️ QA passed |
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.
Please squash changes into a single commit so that we have perfectly clean history 😉
added null
76f52c7
to
e2d6415
Compare
@orlangur I have squashed to single commit. |
Hi @orlangur, thank you for the review. |
✔️ QA passed |
Hi @AnshuMishra17, thank you for your contribution! |
Description (*)
Remove the direct use of object manager and replace it with the dependency injection.
Manual testing scenarios (*)