Skip to content

Commit a77322c

Browse files
committed
MC-29102: [2.4.x] [Magento Cloud] Customer receives newsletter unsubscription email after registering for new account
1 parent 4fb9de4 commit a77322c

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

app/code/Magento/Newsletter/Controller/Ajax/Status.php

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55
*/
66
namespace Magento\Newsletter\Controller\Ajax;
77

8-
use Magento\Framework\App\Action;
8+
use Magento\Framework\App\Action\Action;
9+
use Magento\Framework\App\Action\Context;
10+
use Magento\Framework\App\Action\HttpGetActionInterface;
911
use Magento\Framework\Controller\Result\Json;
1012
use Magento\Framework\Controller\ResultFactory;
1113
use Magento\Framework\Validator\EmailAddress as EmailAddressValidator;
@@ -15,7 +17,7 @@
1517
/**
1618
* Newsletter subscription status verification controller.
1719
*/
18-
class Status extends Action\Action implements Action\HttpGetActionInterface
20+
class Status extends Action implements HttpGetActionInterface
1921
{
2022
/**
2123
* @var EmailAddressValidator
@@ -33,13 +35,13 @@ class Status extends Action\Action implements Action\HttpGetActionInterface
3335
private $logger;
3436

3537
/**
36-
* @param Action\Context $context
38+
* @param Context $context
3739
* @param EmailAddressValidator $emailAddressValidator
3840
* @param GuestSubscriptionChecker $guestSubscriptionChecker
3941
* @param LoggerInterface $logger
4042
*/
4143
public function __construct(
42-
Action\Context $context,
44+
Context $context,
4345
EmailAddressValidator $emailAddressValidator,
4446
GuestSubscriptionChecker $guestSubscriptionChecker,
4547
LoggerInterface $logger

app/code/Magento/Newsletter/Model/GuestSubscriptionChecker.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ public function __construct(ResourceConnection $resourceConnection, StoreManager
4040
*
4141
* @param string $subscriberEmail
4242
* @return bool
43-
* @throws \Magento\Framework\Exception\LocalizedException
4443
*/
4544
public function isSubscribed(string $subscriberEmail): bool
4645
{

0 commit comments

Comments
 (0)