Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Public Member Functions | Protected Attributes
Index Class Reference
Inheritance diagram for Index:
Action AbstractAction ActionInterface ExpressCheckout SaveMethod UnsetCookie

Public Member Functions

 __construct (Context $context, QuoteManager $quoteManager, CheckoutSession $checkoutSession, CustomerSession $customerSession, SessionHelper $sessionHelper)
 
 setClearCheckoutSession ($clear=true)
 
- Public Member Functions inherited from Action
 __construct (Context $context)
 
 dispatch (RequestInterface $request)
 
 getActionFlag ()
 
- Public Member Functions inherited from AbstractAction
 __construct (Context $context)
 
 dispatch (RequestInterface $request)
 
 getRequest ()
 
 getResponse ()
 
- Public Member Functions inherited from ActionInterface
 execute ()
 

Protected Attributes

 $quoteManager
 
 $checkoutSession
 
 $customerSession
 
 $sessionHelper
 
 $clearCheckoutSession = true
 
- Protected Attributes inherited from Action
 $_objectManager
 
 $_sessionNamespace
 
 $_eventManager
 
 $_actionFlag
 
 $_redirect
 
 $_view
 
 $_url
 
 $messageManager
 
- Protected Attributes inherited from AbstractAction
 $_request
 
 $_response
 
 $resultRedirectFactory
 
 $resultFactory
 

Additional Inherited Members

- Data Fields inherited from ActionInterface
const FLAG_NO_DISPATCH = 'no-dispatch'
 
const FLAG_NO_POST_DISPATCH = 'no-postDispatch'
 
const FLAG_NO_DISPATCH_BLOCK_EVENT = 'no-beforeGenerateLayoutBlocksDispatch'
 
const PARAM_NAME_BASE64_URL = 'r64'
 
const PARAM_NAME_URL_ENCODED = 'uenc'
 
- Protected Member Functions inherited from Action
 _forward ($action, $controller=null, $module=null, array $params=null)
 
 _redirect ($path, $arguments=[])
 

Detailed Description

Persistent front controller @codeCoverageIgnore

Definition at line 19 of file Index.php.

Constructor & Destructor Documentation

◆ __construct()

__construct ( Context  $context,
QuoteManager  $quoteManager,
CheckoutSession  $checkoutSession,
CustomerSession  $customerSession,
SessionHelper  $sessionHelper 
)
Parameters
\Magento\Framework\App\Action\Context$context
\Magento\Persistent\Model\QuoteManager$quoteManager
\Magento\Checkout\Model\Session$checkoutSession
\Magento\Customer\Model\Session$customerSession
\Magento\Persistent\Helper\Session$sessionHelper

Definition at line 61 of file Index.php.

67  {
68  $this->quoteManager = $quoteManager;
69  $this->checkoutSession = $checkoutSession;
70  $this->customerSession = $customerSession;
71  $this->sessionHelper = $sessionHelper;
72  parent::__construct($context);
73  }

Member Function Documentation

◆ setClearCheckoutSession()

setClearCheckoutSession (   $clear = true)

Set whether clear checkout session when logout

Parameters
bool$clear
Returns
$this

Definition at line 81 of file Index.php.

82  {
83  $this->clearCheckoutSession = $clear;
84  return $this;
85  }

Field Documentation

◆ $checkoutSession

$checkoutSession
protected

Definition at line 33 of file Index.php.

◆ $clearCheckoutSession

$clearCheckoutSession = true
protected

Definition at line 52 of file Index.php.

◆ $customerSession

$customerSession
protected

Definition at line 40 of file Index.php.

◆ $quoteManager

$quoteManager
protected

Definition at line 26 of file Index.php.

◆ $sessionHelper

$sessionHelper
protected

Definition at line 45 of file Index.php.


The documentation for this class was generated from the following file: