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-persistent
Controller
Index.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Persistent\Controller
;
7
8
use
Magento\Framework\App\Action\Action
;
9
use
Magento\Framework\App\Action\Context
;
10
use
Magento\Persistent\Model\QuoteManager
;
11
use
Magento\Checkout\Model\Session
as
CheckoutSession
;
12
use
Magento\Customer\Model\Session
as
CustomerSession
;
13
use
Magento\Persistent\Helper\Session
as SessionHelper;
14
19
abstract
class
Index
extends
Action
20
{
26
protected
$quoteManager
;
27
33
protected
$checkoutSession
;
34
40
protected
$customerSession
;
41
45
protected
$sessionHelper
;
46
52
protected
$clearCheckoutSession
=
true
;
53
61
public
function
__construct
(
62
Context
$context,
63
QuoteManager
$quoteManager
,
64
CheckoutSession
$checkoutSession
,
65
CustomerSession
$customerSession
,
66
SessionHelper
$sessionHelper
67
) {
68
$this->quoteManager =
$quoteManager
;
69
$this->checkoutSession =
$checkoutSession
;
70
$this->customerSession =
$customerSession
;
71
$this->sessionHelper =
$sessionHelper
;
72
parent::__construct($context);
73
}
74
81
public
function
setClearCheckoutSession
($clear =
true
)
82
{
83
$this->clearCheckoutSession = $clear;
84
return
$this;
85
}
86
}
Magento\Persistent\Controller\Index\__construct
__construct(Context $context, QuoteManager $quoteManager, CheckoutSession $checkoutSession, CustomerSession $customerSession, SessionHelper $sessionHelper)
Definition:
Index.php:61
Magento\Persistent\Model\QuoteManager
Definition:
QuoteManager.php:11
Magento\Persistent\Controller\Index\setClearCheckoutSession
setClearCheckoutSession($clear=true)
Definition:
Index.php:81
Magento\Customer\Model\Session
Definition:
Storage.php:8
Magento\Persistent\Controller\Index\$customerSession
$customerSession
Definition:
Index.php:40
Magento\Checkout\Model\Session
Definition:
SuccessValidator.php:6
Magento\Persistent\Controller\Index
Definition:
Index.php:19
Magento\Persistent\Controller\Index\$quoteManager
$quoteManager
Definition:
Index.php:26
Magento\Persistent\Controller\Index\$sessionHelper
$sessionHelper
Definition:
Index.php:45
Magento\Persistent\Controller\Index\$checkoutSession
$checkoutSession
Definition:
Index.php:33
Magento\Framework\App\Action\Context
Definition:
Context.php:24
Magento\Persistent\Controller\Index\$clearCheckoutSession
$clearCheckoutSession
Definition:
Index.php:52
Magento\Persistent\Helper\Session
Definition:
Session.php:14
Magento\Framework\App\Action\Action
Definition:
Action.php:25
Magento\Persistent\Controller