File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
app/code/Magento/Newsletter/Controller/Subscriber Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 10
10
use Magento \Customer \Model \Session ;
11
11
use Magento \Customer \Model \Url as CustomerUrl ;
12
12
use Magento \Framework \App \Action \Context ;
13
+ use Magento \Framework \App \Action \HttpPostActionInterface ;
13
14
use Magento \Framework \App \Config \ScopeConfigInterface ;
14
15
use Magento \Framework \App \ObjectManager ;
15
16
use Magento \Framework \Exception \LocalizedException ;
22
23
use Magento \Newsletter \Model \SubscriberFactory ;
23
24
24
25
/**
26
+ * New newsletter subscription action
27
+ *
25
28
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
26
29
*/
27
- class NewAction extends SubscriberController
30
+ class NewAction extends SubscriberController implements HttpPostActionInterface
28
31
{
29
32
/**
30
33
* @var CustomerAccountManagement
@@ -160,6 +163,8 @@ public function execute()
160
163
}
161
164
162
165
/**
166
+ * Get success message
167
+ *
163
168
* @param int $status
164
169
* @return Phrase
165
170
*/
You can’t perform that action at this time.
0 commit comments