Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Index.php
Go to the documentation of this file.
1 <?php
7 
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,
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 }
__construct(Context $context, QuoteManager $quoteManager, CheckoutSession $checkoutSession, CustomerSession $customerSession, SessionHelper $sessionHelper)
Definition: Index.php:61
setClearCheckoutSession($clear=true)
Definition: Index.php:81