Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
module-newsletter
Controller
Manage.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Newsletter\Controller
;
7
8
use
Magento\Framework\App\RequestInterface
;
9
13
abstract
class
Manage
extends
\Magento\Framework\App\Action\Action
14
{
20
protected
$_customerSession
;
21
26
public
function
__construct
(
27
\
Magento
\Framework\
App
\Action\
Context
$context,
28
\
Magento
\Customer\Model\
Session
$customerSession
29
) {
30
parent::__construct($context);
31
$this->_customerSession = $customerSession;
32
}
33
40
public
function
dispatch
(
RequestInterface
$request
)
41
{
42
if
(!$this->_customerSession->authenticate()) {
43
$this->_actionFlag->set(
''
,
'no-dispatch'
,
true
);
44
}
45
return
parent::dispatch(
$request
);
46
}
47
}
Magento\Framework\App
Magento\Newsletter\Controller\Manage
Definition:
Manage.php:13
Magento\Newsletter\Controller\Manage\dispatch
dispatch(RequestInterface $request)
Definition:
Manage.php:40
Magento\Newsletter\Controller\Manage\$_customerSession
$_customerSession
Definition:
Manage.php:20
Magento\Customer\Model\Session
Definition:
Session.php:22
Magento\Framework\App\RequestInterface
Definition:
RequestInterface.php:14
Magento
$request
$request
Definition:
quote_with_configurable_product_last_variation.php:22
Magento\Newsletter\Controller\Manage\__construct
__construct(\Magento\Framework\App\Action\Context $context, \Magento\Customer\Model\Session $customerSession)
Definition:
Manage.php:26
Magento\Framework\App\Action\Context
Definition:
Context.php:24
Magento\Newsletter\Controller
Magento\Framework\App\Action\Action
Definition:
Action.php:25