-
Notifications
You must be signed in to change notification settings - Fork 9.4k
[Forwardport] 2.3 develop PR port 15942 #16277
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 @eduard13. Thank you for your contribution
For more details, please, review the Magento Contributor Assistant documentation |
@@ -44,11 +51,13 @@ class Uploader extends \Magento\Backend\Block\Widget | |||
public function __construct( | |||
\Magento\Backend\Block\Template\Context $context, | |||
\Magento\Framework\File\Size $fileSize, | |||
\Magento\Framework\Image\Adapter\ConfigInterface $imageConfig, |
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, @eduard13, due to Magento backward-compatible guide we can't add new required parameters to the constructor.
Please make this param optional, the example you can look here
/** | ||
* @var \Magento\Framework\Image\Adapter\ConfigInterface | ||
*/ | ||
protected $imageConfig; |
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.
Due to Magento backward-compatible guide we can't add protected properties. All new properties should be private.
@VladimirZaets thank you for the reviews. I've fixed them, moreover I've added also some other changes, which are fixing some modularity perspectives. |
Original Pull Request: #15942
Fixed Issues (if relevant)
Manual testing scenarios
Check the task's scenarios
Contribution checklist