Exemple #1
0
 /**
  * @param \Magento\Framework\View\Element\Template\Context $context
  * @param \Magento\Payment\Helper\Data $paymentData
  * @param \Magento\Checkout\Model\Session $checkoutSession
  * @param array $data
  */
 public function __construct(\Magento\Framework\View\Element\Template\Context $context, \Magento\Payment\Helper\Data $paymentData, \Magento\Checkout\Model\Session $checkoutSession, array $data = [])
 {
     $this->_checkoutSession = $checkoutSession;
     parent::__construct($context, $paymentData, $data);
     $this->_isScopePrivate = true;
 }
Exemple #2
0
 /**
  * @param \Magento\Framework\View\Element\Template\Context $context
  * @param \Magento\Payment\Helper\Data $paymentData
  * @param \Magento\Multishipping\Model\Checkout\Type\Multishipping $multishipping
  * @param array $data
  */
 public function __construct(\Magento\Framework\View\Element\Template\Context $context, \Magento\Payment\Helper\Data $paymentData, \Magento\Multishipping\Model\Checkout\Type\Multishipping $multishipping, array $data = [])
 {
     $this->_multishipping = $multishipping;
     parent::__construct($context, $paymentData, $data);
 }