Example #1
0
 /**
  * @param Factory $factoryElement
  * @param CollectionFactory $factoryCollection
  * @param array $data
  */
 public function __construct(Factory $factoryElement, CollectionFactory $factoryCollection, $data = [])
 {
     $this->_factoryElement = $factoryElement;
     $this->_factoryCollection = $factoryCollection;
     parent::__construct($data);
     $this->_construct();
 }
Example #2
0
 /**
  * @param \Magento\Framework\Locale\Resolver $localeResolver
  * @param \Magento\Customer\Helper\Address $customerAddress
  * @param \Magento\Tax\Helper\Data $taxData
  * @param array $data
  */
 public function __construct(Resolver $localeResolver, Address $customerAddress, Data $taxData, array $data = [])
 {
     $this->customerAddress = $customerAddress;
     $this->localeResolver = $localeResolver;
     $this->taxData = $taxData;
     parent::__construct($data);
 }
Example #3
0
 /**
  * @param \Magento\Framework\Locale\Resolver $localeResolver
  * @param \Magento\Customer\Helper\Address $customerAddress
  * @param \Magento\Tax\Helper\Data $taxData
  * @param array $data
  */
 public function __construct(\Magento\Framework\Locale\Resolver $localeResolver, \Magento\Customer\Helper\Address $customerAddress, \Magento\Tax\Helper\Data $taxData, array $data = [])
 {
     $this->_customerAddress = $customerAddress;
     $this->localeResolver = $localeResolver;
     $this->_taxData = $taxData;
     parent::__construct($data);
 }
Example #4
0
 /**
  * @param \Magento\Framework\Registry $coreRegistry
  * @param \Magento\Email\Model\ResourceModel\Template\CollectionFactory $templatesFactory
  * @param \Magento\Email\Model\Template\Config $emailConfig
  * @param array $data
  */
 public function __construct(\Magento\Framework\Registry $coreRegistry, \Magento\Email\Model\ResourceModel\Template\CollectionFactory $templatesFactory, \Magento\Email\Model\Template\Config $emailConfig, array $data = [])
 {
     parent::__construct($data);
     $this->_coreRegistry = $coreRegistry;
     $this->_templatesFactory = $templatesFactory;
     $this->_emailConfig = $emailConfig;
 }
 /**
  * Initialize dependencies
  *
  * @param \Magento\Tax\Helper\Data $taxHelper
  * @param \Magento\Tax\Model\Calculation $taxCalculation
  * @param \Magento\Tax\Model\ResourceModel\Sales\Order\Tax\CollectionFactory $ordersFactory
  * @param array $data
  */
 public function __construct(\Magento\Tax\Helper\Data $taxHelper, \Magento\Tax\Model\Calculation $taxCalculation, \Magento\Tax\Model\ResourceModel\Sales\Order\Tax\CollectionFactory $ordersFactory, array $data = [])
 {
     $this->_taxHelper = $taxHelper;
     $this->_taxCalculation = $taxCalculation;
     $this->_taxOrdersFactory = $ordersFactory;
     parent::__construct($data);
 }
Example #6
0
 /**
  * Constructor
  *
  * @param ObjectManagerInterface $objectManager
  * @param ManagerInterface $componentManager
  * @param InterpreterInterface $argumentInterpreter
  * @param ContextFactory $contextFactory
  * @param array $data
  */
 public function __construct(ObjectManagerInterface $objectManager, ManagerInterface $componentManager, InterpreterInterface $argumentInterpreter, ContextFactory $contextFactory, array $data = [])
 {
     $this->objectManager = $objectManager;
     $this->componentManager = $componentManager;
     $this->argumentInterpreter = $argumentInterpreter;
     $this->contextFactory = $contextFactory;
     parent::__construct($data);
 }
Example #7
0
 /**
  * @param ConfigInterface $config
  * @param ActionFactory $actionFactory
  * @param View\StateInterface $state
  * @param View\ChangelogInterface $changelog
  * @param View\SubscriptionFactory $subscriptionFactory
  * @param array $data
  */
 public function __construct(ConfigInterface $config, ActionFactory $actionFactory, View\StateInterface $state, View\ChangelogInterface $changelog, View\SubscriptionFactory $subscriptionFactory, array $data = [])
 {
     $this->config = $config;
     $this->actionFactory = $actionFactory;
     $this->state = $state;
     $this->changelog = $changelog;
     $this->subscriptionFactory = $subscriptionFactory;
     parent::__construct($data);
 }
Example #8
0
 /**
  * @param \Magento\Framework\UrlFactory $urlFactory
  * @param \Magento\Store\Model\StoreManagerInterface $storeManager
  * @param \Magento\Framework\Filter\FilterManager $filter
  * @param \Magento\Framework\Session\SidResolverInterface $sidResolver
  * @param UrlFinderInterface $urlFinder
  * @param array $data
  */
 public function __construct(\Magento\Framework\UrlFactory $urlFactory, \Magento\Store\Model\StoreManagerInterface $storeManager, \Magento\Framework\Filter\FilterManager $filter, \Magento\Framework\Session\SidResolverInterface $sidResolver, UrlFinderInterface $urlFinder, array $data = [])
 {
     parent::__construct($data);
     $this->urlFactory = $urlFactory;
     $this->storeManager = $storeManager;
     $this->filter = $filter;
     $this->sidResolver = $sidResolver;
     $this->urlFinder = $urlFinder;
 }
Example #9
0
 public function __construct(\Arkade\S3\Helper\Data $helper, \Magento\MediaStorage\Helper\File\Media $mediaHelper, \Magento\MediaStorage\Helper\File\Storage\Database $storageHelper, \Psr\Log\LoggerInterface $logger)
 {
     parent::__construct();
     $this->helper = $helper;
     $this->mediaHelper = $mediaHelper;
     $this->storageHelper = $storageHelper;
     $this->logger = $logger;
     $this->client = new \Aws\S3\S3Client(['version' => 'latest', 'region' => $this->helper->getRegion(), 'credentials' => ['key' => $this->helper->getAccessKey(), 'secret' => $this->helper->getSecretKey()]]);
 }
Example #10
0
 /**
  * @param \Magento\Shipping\Helper\Data $shippingData
  * @param \Magento\Sales\Model\OrderFactory $orderFactory
  * @param \Magento\Sales\Api\ShipmentRepositoryInterface $shipmentRepository
  * @param \Magento\Shipping\Model\Order\TrackFactory $trackFactory
  * @param \Magento\Shipping\Model\ResourceModel\Order\Track\CollectionFactory $trackCollectionFactory
  * @param array $data
  */
 public function __construct(\Magento\Shipping\Helper\Data $shippingData, \Magento\Sales\Model\OrderFactory $orderFactory, \Magento\Sales\Api\ShipmentRepositoryInterface $shipmentRepository, \Magento\Shipping\Model\Order\TrackFactory $trackFactory, \Magento\Shipping\Model\ResourceModel\Order\Track\CollectionFactory $trackCollectionFactory, array $data = [])
 {
     $this->_shippingData = $shippingData;
     $this->_orderFactory = $orderFactory;
     $this->shipmentRepository = $shipmentRepository;
     $this->_trackFactory = $trackFactory;
     $this->_trackCollectionFactory = $trackCollectionFactory;
     parent::__construct($data);
 }
 /**
  * Constructor
  *
  * @param \Magento\Catalog\Model\Product\Compare\ItemFactory $compareItemFactory
  * @param \Magento\Catalog\Model\ResourceModel\Product\Compare\Item\CollectionFactory $itemCollectionFactory
  * @param \Magento\Catalog\Model\ResourceModel\Product\Compare\Item $catalogProductCompareItem
  * @param \Magento\Customer\Model\Session $customerSession
  * @param \Magento\Customer\Model\Visitor $customerVisitor
  * @param array $data
  */
 public function __construct(\Magento\Catalog\Model\Product\Compare\ItemFactory $compareItemFactory, \Magento\Catalog\Model\ResourceModel\Product\Compare\Item\CollectionFactory $itemCollectionFactory, \Magento\Catalog\Model\ResourceModel\Product\Compare\Item $catalogProductCompareItem, \Magento\Customer\Model\Session $customerSession, \Magento\Customer\Model\Visitor $customerVisitor, array $data = [])
 {
     $this->_compareItemFactory = $compareItemFactory;
     $this->_itemCollectionFactory = $itemCollectionFactory;
     $this->_catalogProductCompareItem = $catalogProductCompareItem;
     $this->_customerSession = $customerSession;
     $this->_customerVisitor = $customerVisitor;
     parent::__construct($data);
 }
 /**
  * @param \Magento\Framework\Message\ManagerInterface $messageManager
  * @param \Magento\Framework\Registry $registry
  * @param \Magento\Sales\Model\Order\ShipmentRepository $shipmentRepository
  * @param \Magento\Sales\Model\Order\ShipmentFactory $shipmentFactory
  * @param \Magento\Sales\Model\Order\Shipment\TrackFactory $trackFactory
  * @param \Magento\Sales\Api\OrderRepositoryInterface $orderRepository
  * @param array $data
  */
 public function __construct(\Magento\Framework\Message\ManagerInterface $messageManager, \Magento\Framework\Registry $registry, \Magento\Sales\Model\Order\ShipmentRepository $shipmentRepository, \Magento\Sales\Model\Order\ShipmentFactory $shipmentFactory, \Magento\Sales\Model\Order\Shipment\TrackFactory $trackFactory, \Magento\Sales\Api\OrderRepositoryInterface $orderRepository, array $data = [])
 {
     $this->messageManager = $messageManager;
     $this->registry = $registry;
     $this->shipmentRepository = $shipmentRepository;
     $this->shipmentFactory = $shipmentFactory;
     $this->trackFactory = $trackFactory;
     $this->orderRepository = $orderRepository;
     parent::__construct($data);
 }
Example #13
0
 /**
  * @param \Magento\Backup\Helper\Data $helper
  * @param \Magento\Framework\Locale\ResolverInterface $localeResolver
  * @param \Magento\Backend\Model\Auth\Session $authSession
  * @param \Magento\Framework\Encryption\EncryptorInterface $encryptor
  * @param \Magento\Framework\Filesystem $filesystem
  * @param array $data
  */
 public function __construct(\Magento\Backup\Helper\Data $helper, \Magento\Framework\Locale\ResolverInterface $localeResolver, \Magento\Backend\Model\Auth\Session $authSession, \Magento\Framework\Encryption\EncryptorInterface $encryptor, \Magento\Framework\Filesystem $filesystem, $data = [])
 {
     $this->_encryptor = $encryptor;
     parent::__construct($data);
     $this->_filesystem = $filesystem;
     $this->varDirectory = $this->_filesystem->getDirectoryWrite(DirectoryList::VAR_DIR);
     $this->_helper = $helper;
     $this->_localeResolver = $localeResolver;
     $this->_backendAuthSession = $authSession;
 }
Example #14
0
 /**
  * @param ConfigInterface $config
  * @param ActionFactory $actionFactory
  * @param StructureFactory $structureFactory
  * @param \Magento\Framework\Mview\ViewInterface $view
  * @param Indexer\StateFactory $stateFactory
  * @param Indexer\CollectionFactory $indexersFactory
  * @param array $data
  */
 public function __construct(ConfigInterface $config, ActionFactory $actionFactory, StructureFactory $structureFactory, \Magento\Framework\Mview\ViewInterface $view, Indexer\StateFactory $stateFactory, Indexer\CollectionFactory $indexersFactory, array $data = [])
 {
     $this->config = $config;
     $this->actionFactory = $actionFactory;
     $this->structureFactory = $structureFactory;
     $this->view = $view;
     $this->stateFactory = $stateFactory;
     $this->indexersFactory = $indexersFactory;
     parent::__construct($data);
 }
Example #15
0
 /**
  * @param \Magento\Checkout\Model\Session $checkoutSession
  * @param \Magento\Catalog\Model\ResourceModel\Url $catalogUrl
  * @param \Magento\Checkout\Model\Cart $checkoutCart
  * @param \Magento\Checkout\Helper\Data $checkoutHelper
  * @param ItemPoolInterface $itemPoolInterface
  * @param \Magento\Framework\View\LayoutInterface $layout
  * @param array $data
  * @codeCoverageIgnore
  */
 public function __construct(\Magento\Checkout\Model\Session $checkoutSession, \Magento\Catalog\Model\ResourceModel\Url $catalogUrl, \Magento\Checkout\Model\Cart $checkoutCart, \Magento\Checkout\Helper\Data $checkoutHelper, ItemPoolInterface $itemPoolInterface, \Magento\Framework\View\LayoutInterface $layout, array $data = [])
 {
     parent::__construct($data);
     $this->checkoutSession = $checkoutSession;
     $this->catalogUrl = $catalogUrl;
     $this->checkoutCart = $checkoutCart;
     $this->checkoutHelper = $checkoutHelper;
     $this->itemPoolInterface = $itemPoolInterface;
     $this->layout = $layout;
 }
 /**
  * @param \Magento\Store\Model\StoreManagerInterface $storeManager,
  * @param \Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig,
  * @param \Magento\Framework\App\Config\ValueInterface $backendModel,
  * @param \Magento\Framework\DB\Transaction $transaction,
  * @param \Magento\Framework\App\Config\ValueFactory $configValueFactory,
  * @param array $data
  */
 public function __construct(\Magento\Store\Model\StoreManagerInterface $storeManager, \Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig, \Magento\Framework\App\Config\ValueInterface $backendModel, \Magento\Framework\DB\Transaction $transaction, \Magento\Framework\App\Config\ValueFactory $configValueFactory, array $data = [])
 {
     parent::__construct($data);
     $this->_storeManager = $storeManager;
     $this->_scopeConfig = $scopeConfig;
     $this->_backendModel = $backendModel;
     $this->_transaction = $transaction;
     $this->_configValueFactory = $configValueFactory;
     $this->_storeId = (int) $this->_storeManager->getStore()->getId();
     $this->_storeCode = $this->_storeManager->getStore()->getCode();
 }
 /**
  * Constructor
  *
  * @param \Magento\Catalog\Model\Layer\Filter\ItemFactory $filterItemFactory
  * @param \Magento\Store\Model\StoreManagerInterface $storeManager
  * @param \Magento\Catalog\Model\Layer $layer
  * @param \Magento\Catalog\Model\Layer\Filter\Item\DataBuilder $itemDataBuilder
  * @param array $data
  * @throws \Magento\Framework\Exception\LocalizedException
  */
 public function __construct(\Magento\Catalog\Model\Layer\Filter\ItemFactory $filterItemFactory, \Magento\Store\Model\StoreManagerInterface $storeManager, \Magento\Catalog\Model\Layer $layer, \Magento\Catalog\Model\Layer\Filter\Item\DataBuilder $itemDataBuilder, array $data = [])
 {
     $this->_filterItemFactory = $filterItemFactory;
     $this->_storeManager = $storeManager;
     $this->_catalogLayer = $layer;
     $this->itemDataBuilder = $itemDataBuilder;
     parent::__construct($data);
     if ($this->hasAttributeModel()) {
         $this->_requestVar = $this->getAttributeModel()->getAttributeCode();
     }
 }
Example #18
0
 /**
  * Init model, steps
  *
  * @param Session $checkoutSession
  * @param Multishipping $multishipping
  */
 public function __construct(Session $checkoutSession, Multishipping $multishipping)
 {
     $this->_checkoutSession = $checkoutSession;
     $this->_multishipping = $multishipping;
     parent::__construct();
     $this->_steps = [self::STEP_SELECT_ADDRESSES => new \Magento\Framework\DataObject(['label' => __('Select Addresses')]), self::STEP_SHIPPING => new \Magento\Framework\DataObject(['label' => __('Shipping Information')]), self::STEP_BILLING => new \Magento\Framework\DataObject(['label' => __('Billing Information')]), self::STEP_OVERVIEW => new \Magento\Framework\DataObject(['label' => __('Place Order')]), self::STEP_SUCCESS => new \Magento\Framework\DataObject(['label' => __('Order Success')])];
     foreach ($this->_steps as $step) {
         $step->setIsComplete(false);
     }
     $this->_steps[$this->getActiveStep()]->setIsActive(true);
 }
Example #19
0
 /**
  * @param \Magento\Framework\App\Config\ReinitableConfigInterface $config
  * @param \Magento\Framework\Event\ManagerInterface $eventManager
  * @param \Magento\Config\Model\Config\Structure $configStructure
  * @param \Magento\Framework\DB\TransactionFactory $transactionFactory
  * @param \Magento\Config\Model\Config\Loader $configLoader
  * @param \Magento\Framework\App\Config\ValueFactory $configValueFactory
  * @param \Magento\Store\Model\StoreManagerInterface $storeManager
  * @param array $data
  */
 public function __construct(\Magento\Framework\App\Config\ReinitableConfigInterface $config, \Magento\Framework\Event\ManagerInterface $eventManager, \Magento\Config\Model\Config\Structure $configStructure, \Magento\Framework\DB\TransactionFactory $transactionFactory, \Magento\Config\Model\Config\Loader $configLoader, \Magento\Framework\App\Config\ValueFactory $configValueFactory, \Magento\Store\Model\StoreManagerInterface $storeManager, array $data = [])
 {
     parent::__construct($data);
     $this->_eventManager = $eventManager;
     $this->_configStructure = $configStructure;
     $this->_transactionFactory = $transactionFactory;
     $this->_appConfig = $config;
     $this->_configLoader = $configLoader;
     $this->_configValueFactory = $configValueFactory;
     $this->_storeManager = $storeManager;
 }
Example #20
0
 /**
  * @param \Magento\Framework\Event\ManagerInterface $eventManager
  * @param \Magento\Sales\Api\InvoiceRepositoryInterface $invoiceRepository
  * @param \Magento\Sales\Model\Order\Invoice\ItemFactory $invoiceItemFactory
  * @param \Magento\Sales\Api\ShipmentRepositoryInterface $shipmentRepository
  * @param \Magento\Sales\Model\Order\Shipment\ItemFactory $shipmentItemFactory
  * @param \Magento\Sales\Api\CreditmemoRepositoryInterface $creditmemoRepository
  * @param \Magento\Sales\Model\Order\Creditmemo\ItemFactory $creditmemoItemFactory
  * @param \Magento\Framework\DataObject\Copy $objectCopyService
  * @param array $data
  *
  * @SuppressWarnings(PHPMD.ExcessiveParameterList)
  */
 public function __construct(\Magento\Framework\Event\ManagerInterface $eventManager, \Magento\Sales\Api\InvoiceRepositoryInterface $invoiceRepository, \Magento\Sales\Model\Order\Invoice\ItemFactory $invoiceItemFactory, \Magento\Sales\Api\ShipmentRepositoryInterface $shipmentRepository, \Magento\Sales\Model\Order\Shipment\ItemFactory $shipmentItemFactory, \Magento\Sales\Api\CreditmemoRepositoryInterface $creditmemoRepository, \Magento\Sales\Model\Order\Creditmemo\ItemFactory $creditmemoItemFactory, \Magento\Framework\DataObject\Copy $objectCopyService, array $data = [])
 {
     $this->_eventManager = $eventManager;
     $this->invoiceRepository = $invoiceRepository;
     $this->_invoiceItemFactory = $invoiceItemFactory;
     $this->shipmentRepository = $shipmentRepository;
     $this->_shipmentItemFactory = $shipmentItemFactory;
     $this->creditmemoRepository = $creditmemoRepository;
     $this->_creditmemoItemFactory = $creditmemoItemFactory;
     $this->_objectCopyService = $objectCopyService;
     parent::__construct($data);
 }
Example #21
0
 /**
  * @param \Magento\Store\Model\StoreManagerInterface $storeManager
  * @param \Magento\Framework\View\DesignInterface $viewDesign
  * @param \Magento\Framework\App\DesignInterface $design
  * @param \Magento\Framework\TranslateInterface $translate
  * @param \Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig
  * @param ConfigInterface $inlineConfig
  * @param \Magento\Framework\Translate\Inline\StateInterface $inlineTranslation
  * @param \Magento\Framework\Locale\ResolverInterface $localeResolver
  * @param \Psr\Log\LoggerInterface $logger
  * @param array $data
  * @SuppressWarnings(PHPMD.ExcessiveParameterList)
  */
 public function __construct(\Magento\Store\Model\StoreManagerInterface $storeManager, \Magento\Framework\View\DesignInterface $viewDesign, \Magento\Framework\App\DesignInterface $design, \Magento\Framework\TranslateInterface $translate, \Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig, ConfigInterface $inlineConfig, \Magento\Framework\Translate\Inline\StateInterface $inlineTranslation, \Magento\Framework\Locale\ResolverInterface $localeResolver, \Psr\Log\LoggerInterface $logger, array $data = [])
 {
     $this->_localeResolver = $localeResolver;
     parent::__construct($data);
     $this->_storeManager = $storeManager;
     $this->_viewDesign = $viewDesign;
     $this->_design = $design;
     $this->_translate = $translate;
     $this->_scopeConfig = $scopeConfig;
     $this->inlineConfig = $inlineConfig;
     $this->inlineTranslation = $inlineTranslation;
     $this->logger = $logger;
 }
 /**
  * @param \Magento\Framework\View\Asset\Repository $assetRepo
  * @param \Magento\Framework\View\LayoutInterface $layout
  * @param array $data
  */
 public function __construct(\Magento\Framework\View\Asset\Repository $assetRepo, \Magento\Framework\View\LayoutInterface $layout, array $data = [])
 {
     $this->_assetRepo = $assetRepo;
     $this->_layout = $layout;
     parent::__construct($data);
     $this->loadAttributeOptions()->loadOperatorOptions()->loadValueOptions();
     foreach (array_keys($this->getAttributeOption()) as $attr) {
         $this->setAttribute($attr);
         break;
     }
     foreach (array_keys($this->getOperatorOption()) as $operator) {
         $this->setOperator($operator);
         break;
     }
 }
 public function __construct(\Ess\M2ePro\Model\Factory $modelFactory, \Ess\M2ePro\Helper\Factory $helperFactory, \Magento\Rule\Model\Condition\Context $context, array $data = [])
 {
     $this->modelFactory = $modelFactory;
     $this->helperFactory = $helperFactory;
     $this->_assetRepo = $context->getAssetRepository();
     $this->_localeDate = $context->getLocaleDate();
     $this->_layout = $context->getLayout();
     parent::__construct($data);
     $this->loadAttributeOptions()->loadOperatorOptions()->loadValueOptions();
     if ($options = $this->getAttributeOptions()) {
         foreach ($options as $attr => $dummy) {
             $this->setAttribute($attr);
             break;
         }
     }
     if ($options = $this->getOperatorOptions()) {
         foreach ($options as $operator => $dummy) {
             $this->setOperator($operator);
             break;
         }
     }
 }
Example #24
0
 /**
  * @param Context $context
  * @param array $data
  */
 public function __construct(Context $context, array $data = [])
 {
     $this->_assetRepo = $context->getAssetRepository();
     $this->_localeDate = $context->getLocaleDate();
     $this->_layout = $context->getLayout();
     parent::__construct($data);
     $this->loadAttributeOptions()->loadOperatorOptions()->loadValueOptions();
     $options = $this->getAttributeOptions();
     if ($options) {
         foreach (array_keys($options) as $attr) {
             $this->setAttribute($attr);
             break;
         }
     }
     $options = $this->getOperatorOptions();
     if ($options) {
         foreach (array_keys($options) as $operator) {
             $this->setOperator($operator);
             break;
         }
     }
 }
 /**
  * @param CreditmemoRepositoryInterface $creditmemoRepository
  * @param CreditmemoFactory $creditmemoFactory
  * @param \Magento\Sales\Model\OrderFactory $orderFactory
  * @param \Magento\Sales\Api\InvoiceRepositoryInterface $invoiceRepository
  * @param \Magento\Framework\Event\ManagerInterface $eventManager
  * @param \Magento\Backend\Model\Session $backendSession
  * @param \Magento\Framework\Message\ManagerInterface $messageManager
  * @param \Magento\Framework\Registry $registry
  * @param \Magento\CatalogInventory\Api\StockConfigurationInterface $stockConfiguration
  * @param array $data
  * @SuppressWarnings(PHPMD.ExcessiveParameterList)
  */
 public function __construct(CreditmemoRepositoryInterface $creditmemoRepository, CreditmemoFactory $creditmemoFactory, \Magento\Sales\Model\OrderFactory $orderFactory, \Magento\Sales\Api\InvoiceRepositoryInterface $invoiceRepository, \Magento\Framework\Event\ManagerInterface $eventManager, \Magento\Backend\Model\Session $backendSession, \Magento\Framework\Message\ManagerInterface $messageManager, \Magento\Framework\Registry $registry, \Magento\CatalogInventory\Api\StockConfigurationInterface $stockConfiguration, array $data = [])
 {
     $this->creditmemoRepository = $creditmemoRepository;
     $this->creditmemoFactory = $creditmemoFactory;
     $this->orderFactory = $orderFactory;
     $this->invoiceRepository = $invoiceRepository;
     $this->eventManager = $eventManager;
     $this->backendSession = $backendSession;
     $this->messageManager = $messageManager;
     $this->registry = $registry;
     $this->stockConfiguration = $stockConfiguration;
     parent::__construct($data);
 }
 /**
  * Constructor
  *
  * @param \Magento\Framework\View\Element\Context $context
  * @param array $data
  */
 public function __construct(\Magento\Framework\View\Element\Context $context, array $data = [])
 {
     $this->_request = $context->getRequest();
     $this->_layout = $context->getLayout();
     $this->_eventManager = $context->getEventManager();
     $this->_urlBuilder = $context->getUrlBuilder();
     $this->_cache = $context->getCache();
     $this->_design = $context->getDesignPackage();
     $this->_session = $context->getSession();
     $this->_sidResolver = $context->getSidResolver();
     $this->_scopeConfig = $context->getScopeConfig();
     $this->_assetRepo = $context->getAssetRepository();
     $this->_viewConfig = $context->getViewConfig();
     $this->_cacheState = $context->getCacheState();
     $this->_logger = $context->getLogger();
     $this->_escaper = $context->getEscaper();
     $this->filterManager = $context->getFilterManager();
     $this->_localeDate = $context->getLocaleDate();
     $this->inlineTranslation = $context->getInlineTranslation();
     if (isset($data['jsLayout'])) {
         $this->jsLayout = $data['jsLayout'];
         unset($data['jsLayout']);
     }
     parent::__construct($data);
     $this->_construct();
 }
 /**
  * @param \Psr\Log\LoggerInterface $logger
  * @param \Magento\Framework\Filesystem $filesystem
  * @param array $data
  */
 public function __construct(\Psr\Log\LoggerInterface $logger, \Magento\Framework\Filesystem $filesystem, array $data = [])
 {
     $this->_logger = $logger;
     $this->_varDirectory = $filesystem->getDirectoryWrite(DirectoryList::VAR_DIR);
     parent::__construct($data);
 }
Example #28
0
 /**
  * @param \Magento\Framework\ObjectManagerInterface $objectManager
  * @param \Magento\Framework\Event\ManagerInterface $eventManager
  * @param \Magento\Framework\Registry $coreRegistry
  * @param \Magento\Sales\Model\Config $salesConfig
  * @param \Magento\Backend\Model\Session\Quote $quoteSession
  * @param \Psr\Log\LoggerInterface $logger
  * @param \Magento\Framework\DataObject\Copy $objectCopyService
  * @param \Magento\Framework\Message\ManagerInterface $messageManager
  * @param Product\Quote\Initializer $quoteInitializer
  * @param \Magento\Customer\Api\CustomerRepositoryInterface $customerRepository
  * @param \Magento\Customer\Api\AddressRepositoryInterface $addressRepository
  * @param \Magento\Customer\Api\Data\AddressInterfaceFactory $addressFactory
  * @param \Magento\Customer\Model\Metadata\FormFactory $metadataFormFactory
  * @param \Magento\Customer\Api\GroupRepositoryInterface $groupRepository
  * @param \Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig
  * @param EmailSender $emailSender
  * @param \Magento\CatalogInventory\Api\StockRegistryInterface $stockRegistry
  * @param Item\Updater $quoteItemUpdater
  * @param \Magento\Framework\DataObject\Factory $objectFactory
  * @param \Magento\Quote\Model\QuoteRepository $quoteRepository
  * @param \Magento\Customer\Api\AccountManagementInterface $accountManagement
  * @param \Magento\Customer\Api\Data\CustomerInterfaceFactory $customerFactory
  * @param \Magento\Customer\Model\Customer\Mapper $customerMapper
  * @param \Magento\Quote\Model\QuoteManagement $quoteManagement
  * @param \Magento\Framework\Api\DataObjectHelper $dataObjectHelper
  * @param \Magento\Sales\Api\OrderManagementInterface $orderManagement
  * @param array $data
  * @SuppressWarnings(PHPMD.ExcessiveParameterList)
  */
 public function __construct(\Magento\Framework\ObjectManagerInterface $objectManager, \Magento\Framework\Event\ManagerInterface $eventManager, \Magento\Framework\Registry $coreRegistry, \Magento\Sales\Model\Config $salesConfig, \Magento\Backend\Model\Session\Quote $quoteSession, \Psr\Log\LoggerInterface $logger, \Magento\Framework\DataObject\Copy $objectCopyService, \Magento\Framework\Message\ManagerInterface $messageManager, Product\Quote\Initializer $quoteInitializer, \Magento\Customer\Api\CustomerRepositoryInterface $customerRepository, \Magento\Customer\Api\AddressRepositoryInterface $addressRepository, \Magento\Customer\Api\Data\AddressInterfaceFactory $addressFactory, \Magento\Customer\Model\Metadata\FormFactory $metadataFormFactory, \Magento\Customer\Api\GroupRepositoryInterface $groupRepository, \Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig, \Magento\Sales\Model\AdminOrder\EmailSender $emailSender, \Magento\CatalogInventory\Api\StockRegistryInterface $stockRegistry, \Magento\Quote\Model\Quote\Item\Updater $quoteItemUpdater, \Magento\Framework\DataObject\Factory $objectFactory, \Magento\Quote\Model\QuoteRepository $quoteRepository, \Magento\Customer\Api\AccountManagementInterface $accountManagement, \Magento\Customer\Api\Data\CustomerInterfaceFactory $customerFactory, \Magento\Customer\Model\Customer\Mapper $customerMapper, \Magento\Quote\Model\QuoteManagement $quoteManagement, \Magento\Framework\Api\DataObjectHelper $dataObjectHelper, \Magento\Sales\Api\OrderManagementInterface $orderManagement, array $data = [])
 {
     $this->_objectManager = $objectManager;
     $this->_eventManager = $eventManager;
     $this->_coreRegistry = $coreRegistry;
     $this->_salesConfig = $salesConfig;
     $this->_session = $quoteSession;
     $this->_logger = $logger;
     $this->_objectCopyService = $objectCopyService;
     $this->quoteInitializer = $quoteInitializer;
     $this->messageManager = $messageManager;
     $this->customerRepository = $customerRepository;
     $this->addressRepository = $addressRepository;
     $this->addressFactory = $addressFactory;
     $this->_metadataFormFactory = $metadataFormFactory;
     $this->customerFactory = $customerFactory;
     $this->groupRepository = $groupRepository;
     $this->_scopeConfig = $scopeConfig;
     $this->emailSender = $emailSender;
     $this->stockRegistry = $stockRegistry;
     $this->quoteItemUpdater = $quoteItemUpdater;
     $this->objectFactory = $objectFactory;
     $this->quoteRepository = $quoteRepository;
     $this->accountManagement = $accountManagement;
     $this->customerMapper = $customerMapper;
     $this->quoteManagement = $quoteManagement;
     $this->dataObjectHelper = $dataObjectHelper;
     $this->orderManagement = $orderManagement;
     parent::__construct($data);
 }
Example #29
0
 /**
  * @param \Magento\Framework\App\Route\ConfigInterface $routeConfig
  * @param \Magento\Framework\App\RequestInterface $request
  * @param \Magento\Framework\Url\SecurityInfoInterface $urlSecurityInfo
  * @param \Magento\Framework\Url\ScopeResolverInterface $scopeResolver
  * @param \Magento\Framework\Session\Generic $session
  * @param \Magento\Framework\Session\SidResolverInterface $sidResolver
  * @param \Magento\Framework\Url\RouteParamsResolverFactory $routeParamsResolverFactory
  * @param \Magento\Framework\Url\QueryParamsResolverInterface $queryParamsResolver
  * @param \Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig
  * @param \Magento\Framework\Url\RouteParamsPreprocessorInterface $routeParamsPreprocessor
  * @param string $scopeType
  * @param array $data
  * @SuppressWarnings(PHPMD.ExcessiveParameterList)
  */
 public function __construct(
     \Magento\Framework\App\Route\ConfigInterface $routeConfig,
     \Magento\Framework\App\RequestInterface $request,
     \Magento\Framework\Url\SecurityInfoInterface $urlSecurityInfo,
     \Magento\Framework\Url\ScopeResolverInterface $scopeResolver,
     \Magento\Framework\Session\Generic $session,
     \Magento\Framework\Session\SidResolverInterface $sidResolver,
     \Magento\Framework\Url\RouteParamsResolverFactory $routeParamsResolverFactory,
     \Magento\Framework\Url\QueryParamsResolverInterface $queryParamsResolver,
     \Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig,
     \Magento\Framework\Url\RouteParamsPreprocessorInterface $routeParamsPreprocessor,
     $scopeType,
     array $data = []
 ) {
     $this->_request = $request;
     $this->_routeConfig = $routeConfig;
     $this->_urlSecurityInfo = $urlSecurityInfo;
     $this->_scopeResolver = $scopeResolver;
     $this->_session = $session;
     $this->_sidResolver = $sidResolver;
     $this->_routeParamsResolverFactory = $routeParamsResolverFactory;
     $this->_queryParamsResolver = $queryParamsResolver;
     $this->_scopeConfig = $scopeConfig;
     $this->routeParamsPreprocessor = $routeParamsPreprocessor;
     $this->_scopeType = $scopeType;
     parent::__construct($data);
 }
Example #30
0
 /**
  * Constructor
  *
  * Initializes observers collection
  *
  * @param array $data
  */
 public function __construct(array $data = [])
 {
     $this->_observers = new \Magento\Framework\Event\Observer\Collection();
     parent::__construct($data);
 }