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
Subscriber.php
Go to the documentation of this file.
1
<?php
10
namespace
Magento\Newsletter\Controller
;
11
12
use
Magento\Framework\App\Action\Context
;
13
use
Magento\Store\Model\StoreManagerInterface
;
14
use
Magento\Customer\Model\Session
;
15
use Magento\Newsletter\Model\SubscriberFactory;
16
use
Magento\Customer\Model\Url
as CustomerUrl;
17
18
abstract
class
Subscriber
extends
\Magento\Framework\App\Action\Action
19
{
25
protected
$_customerSession
;
26
32
protected
$_subscriberFactory
;
33
37
protected
$_storeManager
;
38
42
protected
$_customerUrl
;
43
51
public
function
__construct
(
52
Context
$context,
53
SubscriberFactory $subscriberFactory,
54
Session
$customerSession,
55
StoreManagerInterface
$storeManager
,
56
CustomerUrl
$customerUrl
57
) {
58
parent::__construct($context);
59
$this->_storeManager =
$storeManager
;
60
$this->_subscriberFactory = $subscriberFactory;
61
$this->_customerSession = $customerSession;
62
$this->_customerUrl =
$customerUrl
;
63
}
64
}
Magento\Customer\Model\Url
Definition:
Url.php:17
Magento\Customer\Model\Session
Definition:
Storage.php:8
$customerUrl
$customerUrl
Definition:
info.phtml:28
$storeManager
$storeManager
Definition:
paypal_quote.php:14
Magento\Newsletter\Controller\Subscriber\$_customerSession
$_customerSession
Definition:
Subscriber.php:25
Magento\Store\Model\StoreManagerInterface
Definition:
StoreManagerInterface.php:17
Magento\Customer\Model\Session
Definition:
Session.php:22
Magento\Newsletter\Controller\Subscriber
Definition:
Subscriber.php:18
Magento\Newsletter\Controller\Subscriber\$_storeManager
$_storeManager
Definition:
Subscriber.php:37
Magento\Newsletter\Controller\Subscriber\$_customerUrl
$_customerUrl
Definition:
Subscriber.php:42
Magento\Framework\App\Action\Context
Definition:
Context.php:24
Magento\Newsletter\Controller\Subscriber\$_subscriberFactory
$_subscriberFactory
Definition:
Subscriber.php:32
Magento\Newsletter\Controller
Magento\Newsletter\Controller\Subscriber\__construct
__construct(Context $context, SubscriberFactory $subscriberFactory, Session $customerSession, StoreManagerInterface $storeManager, CustomerUrl $customerUrl)
Definition:
Subscriber.php:51
Magento\Framework\App\Action\Action
Definition:
Action.php:25