File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
app/code/Magento/Newsletter/Model/Plugin Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -18,14 +18,14 @@ class RemoveSubscriberFromQueue
18
18
/**
19
19
* @var RemoveSubscriberFromQueueLink
20
20
*/
21
- private $ removeSubscriberFromQueue ;
21
+ private $ removeSubscriberFromQueueLink ;
22
22
23
23
/**
24
- * @param RemoveSubscriberFromQueueLink $removeSubscriberFromQueue
24
+ * @param RemoveSubscriberFromQueueLink $removeSubscriberFromQueueLink
25
25
*/
26
- public function __construct (RemoveSubscriberFromQueueLink $ removeSubscriberFromQueue )
26
+ public function __construct (RemoveSubscriberFromQueueLink $ removeSubscriberFromQueueLink )
27
27
{
28
- $ this ->removeSubscriberFromQueue = $ removeSubscriberFromQueue ;
28
+ $ this ->removeSubscriberFromQueueLink = $ removeSubscriberFromQueueLink ;
29
29
}
30
30
31
31
/**
@@ -39,7 +39,7 @@ public function __construct(RemoveSubscriberFromQueueLink $removeSubscriberFromQ
39
39
public function afterUnsubscribe (Subscriber $ subject , Subscriber $ subscriber ): Subscriber
40
40
{
41
41
if ($ subscriber ->isStatusChanged () && $ subscriber ->getSubscriberStatus () === Subscriber::STATUS_UNSUBSCRIBED ) {
42
- $ this ->removeSubscriberFromQueue ->execute ((int ) $ subscriber ->getId ());
42
+ $ this ->removeSubscriberFromQueueLink ->execute ((int ) $ subscriber ->getId ());
43
43
}
44
44
45
45
return $ subscriber ;
You can’t perform that action at this time.
0 commit comments