Пример #1
1
 /**
  * @param \Magento\Framework\View\Element\Template\Context $context
  * @param \Magento\Customer\Model\Session $customerSession
  * @param \Magento\Checkout\Model\Session $checkoutSession
  * @param \Magento\Directory\Block\Data $directoryBlock
  * @param \Magento\Shipping\Model\CarrierFactoryInterface $carrierFactory
  * @param PriceCurrencyInterface $priceCurrency
  * @param array $data
  */
 public function __construct(\Magento\Framework\View\Element\Template\Context $context, \Magento\Customer\Model\Session $customerSession, \Magento\Checkout\Model\Session $checkoutSession, \Magento\Directory\Block\Data $directoryBlock, \Magento\Shipping\Model\CarrierFactoryInterface $carrierFactory, PriceCurrencyInterface $priceCurrency, array $data = [])
 {
     $this->priceCurrency = $priceCurrency;
     $this->_directoryBlock = $directoryBlock;
     $this->_carrierFactory = $carrierFactory;
     parent::__construct($context, $customerSession, $checkoutSession, $data);
     $this->_isScopePrivate = true;
 }
Пример #2
0
 /**
  * @param \Magento\Framework\View\Element\Template\Context $context
  * @param \Magento\Customer\Model\Session $customerSession
  * @param \Magento\Checkout\Model\Session $checkoutSession
  * @param \Magento\Checkout\Model\CompositeConfigProvider $configProvider
  * @param array $layoutProcessors
  * @param array $data
  * @codeCoverageIgnore
  */
 public function __construct(\Magento\Framework\View\Element\Template\Context $context, \Magento\Customer\Model\Session $customerSession, \Magento\Checkout\Model\Session $checkoutSession, \Magento\Checkout\Model\CompositeConfigProvider $configProvider, array $layoutProcessors = [], array $data = [])
 {
     $this->configProvider = $configProvider;
     $this->layoutProcessors = $layoutProcessors;
     parent::__construct($context, $customerSession, $checkoutSession, $data);
     $this->_isScopePrivate = true;
 }
Пример #3
0
 /**
  * @param \Magento\Framework\View\Element\Template\Context $context
  * @param \Magento\Customer\Model\Session $customerSession
  * @param \Magento\Checkout\Model\Session $checkoutSession
  * @param \Magento\Sales\Model\Config $salesConfig
  * @param array $layoutProcessors
  * @param array $data
  * @codeCoverageIgnore
  */
 public function __construct(\Magento\Framework\View\Element\Template\Context $context, \Magento\Customer\Model\Session $customerSession, \Magento\Checkout\Model\Session $checkoutSession, \Magento\Sales\Model\Config $salesConfig, array $layoutProcessors = [], array $data = [])
 {
     $this->_salesConfig = $salesConfig;
     parent::__construct($context, $customerSession, $checkoutSession, $data);
     $this->_isScopePrivate = true;
     $this->layoutProcessors = $layoutProcessors;
 }
Пример #4
0
 /**
  * @param \Magento\Framework\View\Element\Template\Context $context
  * @param \Magento\Catalog\Helper\Data $catalogData
  * @param \Magento\Customer\Model\Session $customerSession
  * @param \Magento\Checkout\Model\Session $checkoutSession
  * @param \Magento\Directory\Block\Data $directoryBlock
  * @param \Magento\Sales\Model\Quote\Address\CarrierFactoryInterface $carrierFactory
  * @param array $data
  */
 public function __construct(\Magento\Framework\View\Element\Template\Context $context, \Magento\Catalog\Helper\Data $catalogData, \Magento\Customer\Model\Session $customerSession, \Magento\Checkout\Model\Session $checkoutSession, \Magento\Directory\Block\Data $directoryBlock, \Magento\Sales\Model\Quote\Address\CarrierFactoryInterface $carrierFactory, array $data = array())
 {
     $this->_directoryBlock = $directoryBlock;
     $this->_carrierFactory = $carrierFactory;
     parent::__construct($context, $catalogData, $customerSession, $checkoutSession, $data);
     $this->_isScopePrivate = true;
 }
Пример #5
0
 /**
  * @param \Magento\Framework\View\Element\Template\Context $context
  * @param \Magento\Customer\Model\Session $customerSession
  * @param \Magento\Checkout\Model\Session $checkoutSession
  * @param \Magento\Catalog\Model\Resource\Url $catalogUrl
  * @param \Magento\Checkout\Model\Cart $checkoutCart
  * @param \Magento\Checkout\Helper\Data $checkoutHelper
  * @param array $data
  *
  * @SuppressWarnings(PHPMD.ExcessiveParameterList)
  */
 public function __construct(\Magento\Framework\View\Element\Template\Context $context, \Magento\Customer\Model\Session $customerSession, \Magento\Checkout\Model\Session $checkoutSession, \Magento\Catalog\Model\Resource\Url $catalogUrl, \Magento\Checkout\Model\Cart $checkoutCart, \Magento\Checkout\Helper\Data $checkoutHelper, array $data = [])
 {
     $this->_checkoutHelper = $checkoutHelper;
     $this->_catalogUrl = $catalogUrl;
     $this->_checkoutCart = $checkoutCart;
     parent::__construct($context, $customerSession, $checkoutSession, $data);
     $this->_isScopePrivate = true;
 }
Пример #6
0
 /**
  * @param \Magento\Framework\View\Element\Template\Context $context
  * @param \Magento\Catalog\Helper\Data $catalogData
  * @param \Magento\Customer\Model\Session $customerSession
  * @param \Magento\Checkout\Model\Session $checkoutSession
  * @param \Magento\Catalog\Model\Resource\Url $catalogUrlBuilder
  * @param \Magento\Checkout\Helper\Cart $cartHelper
  * @param \Magento\Framework\App\Http\Context $httpContext
  * @param array $data
  */
 public function __construct(\Magento\Framework\View\Element\Template\Context $context, \Magento\Catalog\Helper\Data $catalogData, \Magento\Customer\Model\Session $customerSession, \Magento\Checkout\Model\Session $checkoutSession, \Magento\Catalog\Model\Resource\Url $catalogUrlBuilder, \Magento\Checkout\Helper\Cart $cartHelper, \Magento\Framework\App\Http\Context $httpContext, array $data = array())
 {
     $this->_cartHelper = $cartHelper;
     $this->_catalogUrlBuilder = $catalogUrlBuilder;
     parent::__construct($context, $catalogData, $customerSession, $checkoutSession, $data);
     $this->_isScopePrivate = true;
     $this->httpContext = $httpContext;
 }
Пример #7
0
 /**
  * @param \Magento\Framework\View\Element\Template\Context $context
  * @param \Magento\Customer\Model\Session $customerSession
  * @param \Magento\Checkout\Model\Session $checkoutSession
  * @param \Magento\Catalog\Helper\Image $imageHelper
  * @param \Magento\Customer\CustomerData\JsLayoutDataProviderPoolInterface $jsLayoutDataProvider
  * @param array $data
  * @codeCoverageIgnore
  */
 public function __construct(\Magento\Framework\View\Element\Template\Context $context, \Magento\Customer\Model\Session $customerSession, \Magento\Checkout\Model\Session $checkoutSession, \Magento\Catalog\Helper\Image $imageHelper, \Magento\Customer\CustomerData\JsLayoutDataProviderPoolInterface $jsLayoutDataProvider, array $data = [])
 {
     if (isset($data['jsLayout'])) {
         $this->jsLayout = array_merge_recursive($jsLayoutDataProvider->getData(), $data['jsLayout']);
         unset($data['jsLayout']);
     } else {
         $this->jsLayout = $jsLayoutDataProvider->getData();
     }
     parent::__construct($context, $customerSession, $checkoutSession, $data);
     $this->_isScopePrivate = false;
     $this->imageHelper = $imageHelper;
 }
Пример #8
0
 /**
  * @param \Magento\Framework\View\Element\Template\Context $context
  * @param \Magento\Catalog\Helper\Data $catalogData
  * @param \Magento\Customer\Model\Session $customerSession
  * @param \Magento\Checkout\Model\Session $checkoutSession
  * @param \Magento\Sales\Model\Config $salesConfig
  * @param array $data
  */
 public function __construct(\Magento\Framework\View\Element\Template\Context $context, \Magento\Catalog\Helper\Data $catalogData, \Magento\Customer\Model\Session $customerSession, \Magento\Checkout\Model\Session $checkoutSession, \Magento\Sales\Model\Config $salesConfig, array $data = array())
 {
     $this->_salesConfig = $salesConfig;
     parent::__construct($context, $catalogData, $customerSession, $checkoutSession, $data);
     $this->_isScopePrivate = true;
 }
Пример #9
0
 /**
  * @param \Magento\Framework\View\Element\Template\Context $context
  * @param \Magento\Customer\Model\Session $customerSession
  * @param \Magento\Checkout\Model\Session $checkoutSession
  * @param array $data
  * @codeCoverageIgnore
  */
 public function __construct(\Magento\Framework\View\Element\Template\Context $context, \Magento\Customer\Model\Session $customerSession, \Magento\Checkout\Model\Session $checkoutSession, array $data = [])
 {
     parent::__construct($context, $customerSession, $checkoutSession, $data);
     $this->_isScopePrivate = true;
 }
Пример #10
0
 /**
  * @param \Magento\Framework\View\Element\Template\Context $context
  * @param \Magento\Catalog\Helper\Data $catalogData
  * @param \Magento\Customer\Model\Session $customerSession
  * @param \Magento\Checkout\Model\Session $checkoutSession
  * @param PriceCurrencyInterface $priceCurrency
  * @param array $data
  */
 public function __construct(\Magento\Framework\View\Element\Template\Context $context, \Magento\Catalog\Helper\Data $catalogData, \Magento\Customer\Model\Session $customerSession, \Magento\Checkout\Model\Session $checkoutSession, PriceCurrencyInterface $priceCurrency, array $data = array())
 {
     $this->priceCurrency = $priceCurrency;
     parent::__construct($context, $catalogData, $customerSession, $checkoutSession, $data);
 }
Пример #11
0
 /**
  * @param \Magento\Framework\View\Element\Template\Context $context
  * @param \Magento\Customer\Model\Session $customerSession
  * @param \Magento\Checkout\Model\Session $checkoutSession
  * @param \Magento\Directory\Block\Data $directoryBlock
  * @param \Magento\Shipping\Model\CarrierFactoryInterface $carrierFactory
  * @param PriceCurrencyInterface $priceCurrency
  * @param EstimateAddressInterfaceFactory $estimatedAddressFactory
  * @param ShippingMethodManagementInterface $shippingMethodManager
  * @param AddressRepositoryInterface $addressRepository
  * @param CustomerRepositoryInterface $customerRepository
  * @param QuoteRepository $quoteRepository
  * @param array $data
  * @SuppressWarnings(PHPMD.ExcessiveParameterList)
  */
 public function __construct(\Magento\Framework\View\Element\Template\Context $context, \Magento\Customer\Model\Session $customerSession, \Magento\Checkout\Model\Session $checkoutSession, \Magento\Directory\Block\Data $directoryBlock, \Magento\Shipping\Model\CarrierFactoryInterface $carrierFactory, PriceCurrencyInterface $priceCurrency, EstimateAddressInterfaceFactory $estimatedAddressFactory, ShippingMethodManagementInterface $shippingMethodManager, AddressRepositoryInterface $addressRepository, CustomerRepositoryInterface $customerRepository, QuoteRepository $quoteRepository, array $data = [])
 {
     $this->priceCurrency = $priceCurrency;
     $this->_directoryBlock = $directoryBlock;
     $this->_carrierFactory = $carrierFactory;
     $this->estimatedAddressFactory = $estimatedAddressFactory;
     $this->shippingMethodManager = $shippingMethodManager;
     $this->addressRepository = $addressRepository;
     $this->customerRepository = $customerRepository;
     $this->quoteRepository = $quoteRepository;
     parent::__construct($context, $customerSession, $checkoutSession, $data);
     $this->_isScopePrivate = true;
 }