Exemplo n.º 1
0
 /**
  * Constructor
  *
  * @param Context     $context
  * @param Registry    $registry
  * @param FormFactory $formFactory
  * @param SystemStore $systemStore
  * @param Config      $config
  */
 public function __construct(Context $context, Registry $registry, FormFactory $formFactory, SystemStore $systemStore, Config $config)
 {
     $this->systemStore = $systemStore;
     $this->storeManager = $context->getStoreManager();
     $this->config = $config;
     return parent::__construct($context, $registry, $formFactory);
 }
Exemplo n.º 2
0
 /**
  * @param Config $configHelper
  *
  */
 public function __construct(\ShipperHQ\Shipper\Helper\LogAssist $shipperLogger, \Magento\Backend\Block\Template\Context $context, \Magento\Framework\App\Config\MutableScopeConfigInterface $mutableConfig, \ShipperHQ\Shipper\Helper\Data $shipperDataHelper)
 {
     $this->shipperDataHelper = $shipperDataHelper;
     $this->storeManager = $context->getStoreManager();
     $this->shipperLogger = $shipperLogger;
     $this->mutableConfig = $mutableConfig;
 }
Exemplo n.º 3
0
 /**
  * @param \Magento\Backend\Block\Template\Context $context
  * @param array $data
  */
 public function __construct(\Magento\Backend\Block\Template\Context $context, array $data = array())
 {
     $this->_storeManager = $context->getStoreManager();
     parent::__construct($context, $data);
 }
Exemplo n.º 4
0
 /**
  * Grid constructor.
  *
  * @param Context           $context
  * @param BackendHelper     $backendHelper
  * @param CollectionFactory $collectionFactory
  */
 public function __construct(Context $context, BackendHelper $backendHelper, CollectionFactory $collectionFactory)
 {
     $this->collectionFactory = $collectionFactory;
     $this->storeManager = $context->getStoreManager();
     parent::__construct($context, $backendHelper);
 }
Exemplo n.º 5
0
 public function __construct(\ShipperHQ\Shipper\Helper\Data $shipperDataHelper, \Magento\Backend\Block\Template\Context $context, \Magento\Shipping\Model\Config $shippingConfig)
 {
     $this->shippingConfig = $shippingConfig;
     $this->storeManager = $context->getStoreManager();
     $this->shipperDataHelper = $shipperDataHelper;
 }
 /**
  * @param Config $configHelper
  *
  */
 public function __construct(\Magento\Config\Model\ResourceModel\Config $resourceConfig, \Magento\Backend\Block\Template\Context $context, \ShipperHQ\Shipper\Helper\Data $shipperDataHelper)
 {
     $this->shipperDataHelper = $shipperDataHelper;
     $this->storeManager = $context->getStoreManager();
     $this->resourceConfig = $resourceConfig;
 }
Exemplo n.º 7
0
 function __construct(\ShipperHQ\Shipper\Helper\Data $shipperDataHelper, \Magento\Customer\Model\GroupFactory $groupFactory, \ShipperHQ\WS\Rate\Request\RateRequestFactory $rateRequestFactory, \ShipperHQ\WS\Rate\Request\InfoRequestFactory $infoRequestFactory, \ShipperHQ\WS\Shared\AddressFactory $addressFactory, \ShipperHQ\WS\Shared\CredentialsFactory $credentialsFactory, \ShipperHQ\WS\Shared\SiteDetailsFactory $siteDetailsFactory, \ShipperHQ\WS\Rate\Request\CustomerDetailsFactory $customerDetailsFactory, \ShipperHQ\WS\Rate\Request\ShipDetailsFactory $shipDetailsFactory, \ShipperHQ\WS\Rate\Request\Shipping\SelectedOptionsFactory $selectedOptionsFactory, \ShipperHQ\WS\Rate\Request\Checkout\CartFactory $cartFactory, \ShipperHQ\WS\Rate\Request\Checkout\ItemFactory $itemFactory, \Magento\Tax\Model\Calculation $taxCalculation, \ShipperHQ\Shipper\Helper\LogAssist $shipperLogger, \Magento\Catalog\Helper\Product\Configuration $productConfiguration, \Magento\Framework\App\ProductMetadata $productMetadata, \Magento\Backend\Block\Template\Context $context, StockHandler $stockHandler, \Magento\Checkout\Model\Session $checkoutSession, \ShipperHQ\WS\Rate\Request\Checkout\PhysicalBuildingDetailFactory $physicalBuildingDetailFactory, \ShipperHQ\WS\Rate\Request\Checkout\StockDetailFactory $stockDetailFactory)
 {
     $this->shipperDataHelper = $shipperDataHelper;
     $this->storeManager = $context->getStoreManager();
     self::$prodAttributes = $this->shipperDataHelper->getProductAttributes();
     $this->groupFactory = $groupFactory;
     $this->productMetadata = $productMetadata;
     $this->taxCalculation = $taxCalculation;
     $this->productConfiguration = $productConfiguration;
     $this->rateRequestFactory = $rateRequestFactory;
     $this->shipperLogger = $shipperLogger;
     $this->selectedOptionsFactory = $selectedOptionsFactory;
     $this->cartFactory = $cartFactory;
     $this->itemFactory = $itemFactory;
     $this->addressFactory = $addressFactory;
     $this->infoRequestFactory = $infoRequestFactory;
     $this->credentialsFactory = $credentialsFactory;
     $this->siteDetailsFactory = $siteDetailsFactory;
     $this->customerDetailsFactory = $customerDetailsFactory;
     $this->shipDetailsFactory = $shipDetailsFactory;
     $this->stockHandler = $stockHandler;
     $this->physicalBuildingDetailFactory = $physicalBuildingDetailFactory;
     $this->checkoutSession = $checkoutSession;
     $this->stockDetailFactory = $stockDetailFactory;
 }