-
Notifications
You must be signed in to change notification settings - Fork 9.4k
ObjectManager cleanup - Remove usage from AdminNotification module #26939
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
ObjectManager cleanup - Remove usage from AdminNotification module #26939
Conversation
Hi @ihor-sviziev. Thank you for your contribution
For more details, please, review the Magento Contributor Guide documentation. |
Hi @m2-assistant[bot] Here is your new Magento Instance: https://undefined |
0a36b13
to
dfda317
Compare
dfda317
to
d359cdf
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.
@ihor-sviziev Please fix static tests.
There are minor comments, generally speaking 👍
app/code/Magento/AdminNotification/Controller/Adminhtml/Notification/MarkAsRead.php
Outdated
Show resolved
Hide resolved
Hi @lbajsarowicz, thank you for the review.
|
Pull Request state was updated. Re-review required.
@lbajsarowicz could you request the changes in order not to move them to test? |
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.
Leaving at "Request changes" for styling the PHP files.
Fix small issues after code review
Hi @lbajsarowicz, 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.
Hi @engcom-Kilo it would be great if you will squash commits into one.
84d80f4
to
91e3afb
Compare
91e3afb
to
2598994
Compare
* @return void | ||
* @inheritdoc | ||
* | ||
* @return \Magento\Framework\App\ResponseInterface|\Magento\Framework\Controller\ResultInterface |
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.
@return
is not required if there already @inheritdoc
* @return void | ||
* @inheritdoc | ||
* | ||
* @return \Magento\Framework\App\ResponseInterface|\Magento\Framework\Controller\ResultInterface |
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.
same here
* @return void | ||
* @inheritdoc | ||
* | ||
* @return \Magento\Framework\App\ResponseInterface|\Magento\Framework\Controller\ResultInterface |
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.
same here
…back' into cleanup-objectmanager-fallback # Conflicts: # app/code/Magento/AdminNotification/Controller/Adminhtml/Notification/MarkAsRead.php # app/code/Magento/AdminNotification/Controller/Adminhtml/Notification/MassMarkAsRead.php # app/code/Magento/AdminNotification/Controller/Adminhtml/Notification/MassRemove.php # app/code/Magento/AdminNotification/Controller/Adminhtml/Notification/Remove.php
Hi @ihor-sviziev, thank you for your contribution! |
Description (*)
This PR cleans up object manager usage and marks optional arguments as not optional in non API classes.
Related Pull Requests
Fixed Issues (if relevant)
N/A
Manual testing scenarios (*)
Questions or comments
Contribution checklist (*)