-
Notifications
You must be signed in to change notification settings - Fork 150
Set Newsletter Config #807
Set Newsletter Config #807
Conversation
| public function __construct( | ||
| ScopeConfigInterface $scopeConfig, | ||
| UrlInterface $url, | ||
| Config $config |
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 follow BC guide here.
https://devdocs.magento.com/guides/v2.3/contributor-guide/backward-compatible-development/
Adding a constructor parameter section.
|
Please combine those PRs in a way that GraphQl related code is in one PR, core - in the second one. |
|
@lenaorobei, |
| * | ||
| * @return bool | ||
| */ | ||
| public function isActive($scopeType = ScopeConfigInterface::SCOPE_TYPE_DEFAULT) |
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.
| public function isActive($scopeType = ScopeConfigInterface::SCOPE_TYPE_DEFAULT) | |
| public function isActive($scopeType = ScopeConfigInterface::SCOPE_TYPE_DEFAULT): bool |
|
Thanks for the update. |
|
@magento run Functional Tests build, Integration Tests build |
|
@sedonik tests fail with |
| * Configuration path to newsletter active setting | ||
| * @var Newsletter Config | ||
| */ | ||
| const XML_PATH_NEWSLETTER_ACTIVE = 'newsletter/general/active'; |
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 mark as deprecated and add use Magento\Newsletter\Model\Config::XML_PATH_NEWSLETTER_ACTIVE instead comment.
|
@lenaorobei, |
|
@sedonik we also need to check usages of deprecated constant and replace with newly introduced one. |
|
@lenaorobei |
|
Hi @lenaorobei, thank you for the review.
|
|
Ok, @lenaorobei, |
|
Hi @sedonik, thank you for your contribution! |
Description (*)
After created Magento\Newsletter\Model\Config it needs to update Magento\Newsletter\Observer\PredispatchNewsletterObserver with new implementation.
Manual testing scenarios (*)
Create Customer from Admin Panel.
Questions or comments
Related to PR.