예제 #1
0
 /**
  * Construct
  *
  * @param \Magento\Eav\Model\Resource\Entity\Attribute $eavEntityAttribute
  * @param \Magento\Core\Helper\Data $coreData
  * @param array $data
  */
 public function __construct(\Magento\Eav\Model\Resource\Entity\Attribute $eavEntityAttribute, \Magento\Core\Helper\Data $coreData, array $data = array())
 {
     $this->_eavEntityAttribute = $eavEntityAttribute;
     $this->_coreData = $coreData;
     parent::__construct($data);
     $this->setIdFieldName('visibility_id');
 }
예제 #2
0
 /**
  * @param \Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig
  * @param \Magento\Quote\Model\Quote\Address\RateResult\ErrorFactory $rateErrorFactory
  * @param \Psr\Log\LoggerInterface $logger
  * @param array $data
  */
 public function __construct(\Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig, \Magento\Quote\Model\Quote\Address\RateResult\ErrorFactory $rateErrorFactory, \Psr\Log\LoggerInterface $logger, array $data = [])
 {
     parent::__construct($data);
     $this->_scopeConfig = $scopeConfig;
     $this->_rateErrorFactory = $rateErrorFactory;
     $this->_logger = $logger;
 }
예제 #3
0
 /**
  * @param \Magento\Framework\Logger $logger
  * @param \Magento\Framework\App\Filesystem $filesystem
  * @param \Magento\Framework\Logger\AdapterFactory $adapterFactory
  * @param array $data
  */
 public function __construct(\Magento\Framework\Logger $logger, \Magento\Framework\App\Filesystem $filesystem, \Magento\Framework\Logger\AdapterFactory $adapterFactory, array $data = array())
 {
     $this->_logger = $logger;
     $this->_varDirectory = $filesystem->getDirectoryWrite(\Magento\Framework\App\Filesystem::VAR_DIR);
     $this->_adapterFactory = $adapterFactory;
     parent::__construct($data);
 }
예제 #4
0
 /**
  * Initialize dependencies
  *
  * @param \Magento\Tax\Helper\Data $taxHelper
  * @param \Magento\Tax\Model\Calculation $taxCalculation
  * @param \Magento\Tax\Model\Resource\Sales\Order\Tax\CollectionFactory $ordersFactory
  * @param array $data
  */
 public function __construct(\Magento\Tax\Helper\Data $taxHelper, \Magento\Tax\Model\Calculation $taxCalculation, \Magento\Tax\Model\Resource\Sales\Order\Tax\CollectionFactory $ordersFactory, array $data = [])
 {
     $this->_taxHelper = $taxHelper;
     $this->_taxCalculation = $taxCalculation;
     $this->_taxOrdersFactory = $ordersFactory;
     parent::__construct($data);
 }
 /**
  * Constructor
  *
  * @param RenderContext $renderContext
  * @param LayoutFactory $layoutFactory
  * @param array $data
  */
 public function __construct(RenderContext $renderContext, LayoutFactory $layoutFactory, array $data = [])
 {
     $this->renderContext = $renderContext;
     $this->renderContext->setRender($this);
     $this->layoutFactory = $layoutFactory;
     parent::__construct($data);
 }
예제 #6
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();
 }
예제 #7
0
 /**
  * @param \Magento\Framework\Registry $coreRegistry
  * @param \Magento\Email\Model\Resource\Template\CollectionFactory $templatesFactory
  * @param \Magento\Email\Model\Template\Config $emailConfig
  * @param array $data
  */
 public function __construct(\Magento\Framework\Registry $coreRegistry, \Magento\Email\Model\Resource\Template\CollectionFactory $templatesFactory, \Magento\Email\Model\Template\Config $emailConfig, array $data = [])
 {
     parent::__construct($data);
     $this->_coreRegistry = $coreRegistry;
     $this->_templatesFactory = $templatesFactory;
     $this->_emailConfig = $emailConfig;
 }
예제 #8
0
 /**
  * Constructor
  *
  * @param ObjectManagerInterface $objectManager
  * @param ManagerInterface $componentManager
  * @param InterpreterInterface $argumentInterpreter
  * @param array $data
  */
 public function __construct(ObjectManagerInterface $objectManager, ManagerInterface $componentManager, InterpreterInterface $argumentInterpreter, array $data = [])
 {
     $this->objectManager = $objectManager;
     $this->componentManager = $componentManager;
     $this->argumentInterpreter = $argumentInterpreter;
     parent::__construct($data);
 }
 /**
  *
  * @param \Inchoo\SocialConnect\Model\Facebook\Oauth2\Client $client
  * @param array $params
  * @param string $target
  * @param array $data
  */
 public function __construct(\Inchoo\SocialConnect\Model\Facebook\Oauth2\Client $client, array $params = array(), $target = 'me', array $data = array())
 {
     $this->_client = $client;
     $this->_params = $params;
     $this->_target = $target;
     parent::__construct($data);
 }
예제 #10
0
 /**
  * @param \Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig
  * @param \Magento\Framework\Store\StoreManagerInterface $storeManager
  * @param \Magento\Framework\Encryption\EncryptorInterface $encryptor
  * @param array $data
  */
 public function __construct(\Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig, \Magento\Framework\Store\StoreManagerInterface $storeManager, \Magento\Framework\Encryption\EncryptorInterface $encryptor, array $data = [])
 {
     $this->_scopeConfig = $scopeConfig;
     $this->_storeManager = $storeManager;
     $this->_encryptor = $encryptor;
     parent::__construct($data);
 }
예제 #11
0
파일: Service.php 프로젝트: aiesh/magento2
 /**
  * Constructor
  *
  * By default is looking for first argument as array and assigns it as object
  * attributes This behavior may change in child classes
  *
  * @param \Magento\Framework\Logger\AdapterFactory $logAdapterFactory
  * @param \Magento\Framework\Registry $coreRegistry
  * @param \Magento\GoogleShopping\Model\Config $config
  * @param \Magento\Framework\Gdata\Gshopping\ContentFactory $contentFactory
  * @param array $data
  */
 public function __construct(\Magento\Framework\Logger\AdapterFactory $logAdapterFactory, \Magento\Framework\Registry $coreRegistry, \Magento\GoogleShopping\Model\Config $config, \Magento\Framework\Gdata\Gshopping\ContentFactory $contentFactory, array $data = array())
 {
     $this->_logAdapterFactory = $logAdapterFactory;
     $this->_coreRegistry = $coreRegistry;
     $this->_config = $config;
     $this->_contentFactory = $contentFactory;
     parent::__construct($data);
 }
예제 #12
0
 /**
  * @param \Magento\Framework\App\RequestInterface $request
  * @param \Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig
  * @param \Magento\Store\Model\StoreManagerInterface $storeManager
  * @param \Magento\Framework\Url\QueryParamsResolverInterface $queryParamsResolver
  * @param array $data
  */
 public function __construct(\Magento\Framework\App\RequestInterface $request, \Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig, \Magento\Store\Model\StoreManagerInterface $storeManager, \Magento\Framework\Url\QueryParamsResolverInterface $queryParamsResolver, array $data = array())
 {
     parent::__construct($data);
     $this->_request = $request;
     $this->_scopeConfig = $scopeConfig;
     $this->_storeManager = $storeManager;
     $this->_queryParamsResolver = $queryParamsResolver;
 }
예제 #13
0
 /**
  * @param \Psr\Log\LoggerInterface $logger
  * @param \Magento\Framework\Registry $coreRegistry
  * @param Config $config
  * @param \Magento\Framework\Gdata\Gshopping\ContentFactory $contentFactory
  * @param array $data
  */
 public function __construct(\Psr\Log\LoggerInterface $logger, \Magento\Framework\Registry $coreRegistry, \Magento\GoogleShopping\Model\Config $config, \Magento\Framework\Gdata\Gshopping\ContentFactory $contentFactory, array $data = [])
 {
     $this->logger = $logger;
     $this->_coreRegistry = $coreRegistry;
     $this->_config = $config;
     $this->_contentFactory = $contentFactory;
     parent::__construct($data);
 }
예제 #14
0
파일: Info.php 프로젝트: aiesh/magento2
 /**
  * @param \Magento\Shipping\Helper\Data $shippingData
  * @param \Magento\Sales\Model\OrderFactory $orderFactory
  * @param \Magento\Sales\Model\Order\ShipmentFactory $shipmentFactory
  * @param \Magento\Shipping\Model\Order\TrackFactory $trackFactory
  * @param \Magento\Shipping\Model\Resource\Order\Track\CollectionFactory $trackCollectionFactory
  * @param array $data
  */
 public function __construct(\Magento\Shipping\Helper\Data $shippingData, \Magento\Sales\Model\OrderFactory $orderFactory, \Magento\Sales\Model\Order\ShipmentFactory $shipmentFactory, \Magento\Shipping\Model\Order\TrackFactory $trackFactory, \Magento\Shipping\Model\Resource\Order\Track\CollectionFactory $trackCollectionFactory, array $data = array())
 {
     $this->_shippingData = $shippingData;
     $this->_orderFactory = $orderFactory;
     $this->_shipmentFactory = $shipmentFactory;
     $this->_trackFactory = $trackFactory;
     $this->_trackCollectionFactory = $trackCollectionFactory;
     parent::__construct($data);
 }
예제 #15
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 = array())
 {
     $this->config = $config;
     $this->actionFactory = $actionFactory;
     $this->state = $state;
     $this->changelog = $changelog;
     $this->subscriptionFactory = $subscriptionFactory;
     parent::__construct($data);
 }
예제 #16
0
 /**
  * Constructor
  *
  * @param \Magento\Catalog\Model\Product\Compare\ItemFactory $compareItemFactory
  * @param \Magento\Catalog\Model\Resource\Product\Compare\Item\CollectionFactory $itemCollectionFactory
  * @param \Magento\Catalog\Model\Resource\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\Resource\Product\Compare\Item\CollectionFactory $itemCollectionFactory, \Magento\Catalog\Model\Resource\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);
 }
예제 #17
0
 /**
  * @param ConfigInterface $config
  * @param ActionFactory $actionFactory
  * @param \Magento\Framework\Mview\ViewInterface $view
  * @param Indexer\StateFactory $stateFactory
  * @param Indexer\CollectionFactory $indexersFactory
  * @param array $data
  */
 public function __construct(ConfigInterface $config, ActionFactory $actionFactory, \Magento\Framework\Mview\ViewInterface $view, Indexer\StateFactory $stateFactory, Indexer\CollectionFactory $indexersFactory, array $data = [])
 {
     $this->config = $config;
     $this->actionFactory = $actionFactory;
     $this->view = $view;
     $this->stateFactory = $stateFactory;
     $this->indexersFactory = $indexersFactory;
     parent::__construct($data);
 }
예제 #18
0
 /**
  * Constructor
  *
  * @param \Magento\Framework\Convert\ConvertArray $convertArray
  * @param \Magento\Framework\App\Filesystem           $filesystem
  * @param Session                       $session
  * @param \Magento\Framework\Logger               $logger
  * @param array                         $data
  */
 public function __construct(\Magento\Framework\Convert\ConvertArray $convertArray, \Magento\Framework\App\Filesystem $filesystem, \Magento\Connect\Model\Session $session, \Magento\Framework\Logger $logger, array $data = array())
 {
     $this->_convertArray = $convertArray;
     $this->_session = $session;
     $this->filesystem = $filesystem;
     $this->writeDirectory = $this->filesystem->getDirectoryWrite(\Magento\Framework\App\Filesystem::VAR_DIR);
     $this->logger = $logger;
     parent::__construct($data);
 }
예제 #19
0
 /**
  * Construct
  *
  * @param \Magento\UrlRewrite\Model\UrlRewriteFactory $urlRewriteFactory
  * @param \Magento\Framework\UrlInterface $url
  * @param \Magento\Framework\StoreManagerInterface $storeManager
  * @param \Magento\Catalog\Helper\Category $catalogCategory
  * @param \Magento\Framework\Filter\FilterManager $filter
  * @param \Magento\Framework\Session\SidResolverInterface $sidResolver
  * @param array $data
  */
 public function __construct(\Magento\UrlRewrite\Model\UrlRewriteFactory $urlRewriteFactory, \Magento\Framework\UrlInterface $url, \Magento\Framework\StoreManagerInterface $storeManager, \Magento\Catalog\Helper\Category $catalogCategory, \Magento\Framework\Filter\FilterManager $filter, \Magento\Framework\Session\SidResolverInterface $sidResolver, array $data = array())
 {
     $this->_urlRewrite = $urlRewriteFactory->create();
     $this->_url = $url;
     $this->_storeManager = $storeManager;
     $this->_catalogCategory = $catalogCategory;
     $this->filter = $filter;
     $this->_sidResolver = $sidResolver;
     parent::__construct($data);
 }
예제 #20
0
 /**
  * Constructor
  *
  * @param \Magento\Catalog\Model\Layer\Filter\ItemFactory $filterItemFactory
  * @param \Magento\Store\Model\StoreManagerInterface $storeManager
  * @param \Magento\Catalog\Model\Layer $layer
  * @param array $data
  */
 public function __construct(\Magento\Catalog\Model\Layer\Filter\ItemFactory $filterItemFactory, \Magento\Store\Model\StoreManagerInterface $storeManager, \Magento\Catalog\Model\Layer $layer, array $data = array())
 {
     $this->_filterItemFactory = $filterItemFactory;
     $this->_storeManager = $storeManager;
     $this->_catalogLayer = $layer;
     parent::__construct($data);
     if ($this->hasAttributeModel()) {
         $this->_requestVar = $this->getAttributeModel()->getAttributeCode();
     }
 }
예제 #21
0
파일: Quote.php 프로젝트: aiesh/magento2
 /**
  * @param \Magento\Framework\Event\ManagerInterface $eventManager
  * @param \Magento\Sales\Model\OrderFactory $orderFactory
  * @param \Magento\Sales\Model\Order\AddressFactory $orderAddressFactory
  * @param \Magento\Sales\Model\Order\PaymentFactory $orderPaymentFactory
  * @param \Magento\Sales\Model\Order\ItemFactory $orderItemFactory
  * @param \Magento\Framework\Object\Copy $objectCopyService
  * @param array $data
  */
 public function __construct(\Magento\Framework\Event\ManagerInterface $eventManager, \Magento\Sales\Model\OrderFactory $orderFactory, \Magento\Sales\Model\Order\AddressFactory $orderAddressFactory, \Magento\Sales\Model\Order\PaymentFactory $orderPaymentFactory, \Magento\Sales\Model\Order\ItemFactory $orderItemFactory, \Magento\Framework\Object\Copy $objectCopyService, array $data = array())
 {
     $this->_eventManager = $eventManager;
     $this->_orderFactory = $orderFactory;
     $this->_orderAddressFactory = $orderAddressFactory;
     $this->_orderPaymentFactory = $orderPaymentFactory;
     $this->_orderItemFactory = $orderItemFactory;
     $this->_objectCopyService = $objectCopyService;
     parent::__construct($data);
 }
예제 #22
0
 /**
  * @param \Magento\Framework\Message\ManagerInterface $messageManager
  * @param \Magento\Framework\Registry $registry
  * @param \Magento\Sales\Model\Order\ShipmentFactory $shipmentFactory
  * @param \Magento\Sales\Model\OrderFactory $orderFactory
  * @param \Magento\Sales\Model\Service\OrderFactory $orderServiceFactory
  * @param \Magento\Sales\Model\Order\Shipment\TrackFactory $trackFactory
  * @param array $data
  */
 public function __construct(\Magento\Framework\Message\ManagerInterface $messageManager, \Magento\Framework\Registry $registry, \Magento\Sales\Model\Order\ShipmentFactory $shipmentFactory, \Magento\Sales\Model\OrderFactory $orderFactory, \Magento\Sales\Model\Service\OrderFactory $orderServiceFactory, \Magento\Sales\Model\Order\Shipment\TrackFactory $trackFactory, array $data = [])
 {
     $this->messageManager = $messageManager;
     $this->registry = $registry;
     $this->shipmentFactory = $shipmentFactory;
     $this->orderFactory = $orderFactory;
     $this->orderServiceFactory = $orderServiceFactory;
     $this->trackFactory = $trackFactory;
     parent::__construct($data);
 }
예제 #23
0
파일: Cart.php 프로젝트: kid17/magento2
 /**
  * @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 ItemPoolInterface $itemPoolInterface
  * @param \Magento\Framework\View\LayoutInterface $layout
  * @param array $data
  */
 public function __construct(\Magento\Checkout\Model\Session $checkoutSession, \Magento\Catalog\Model\Resource\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;
 }
예제 #24
0
파일: Backup.php 프로젝트: opexsw/magento2
 /**
  * @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;
 }
예제 #25
0
 /**
  * @param \Magento\Framework\UrlInterface $url
  * @param \Magento\Store\Model\StoreManagerInterface $storeManager
  * @param \Magento\Catalog\Helper\Category $catalogCategory
  * @param \Magento\Framework\Filter\FilterManager $filter
  * @param \Magento\Framework\Session\SidResolverInterface $sidResolver
  * @param \Magento\CatalogUrlRewrite\Model\ProductUrlPathGenerator $productUrlPathGenerator
  * @param UrlFinderInterface $urlFinder
  * @param array $data
  */
 public function __construct(\Magento\Framework\UrlInterface $url, \Magento\Store\Model\StoreManagerInterface $storeManager, \Magento\Catalog\Helper\Category $catalogCategory, \Magento\Framework\Filter\FilterManager $filter, \Magento\Framework\Session\SidResolverInterface $sidResolver, \Magento\CatalogUrlRewrite\Model\ProductUrlPathGenerator $productUrlPathGenerator, UrlFinderInterface $urlFinder, array $data = [])
 {
     parent::__construct($data);
     $this->_url = $url;
     $this->_storeManager = $storeManager;
     $this->_catalogCategory = $catalogCategory;
     $this->filter = $filter;
     $this->_sidResolver = $sidResolver;
     $this->productUrlPathGenerator = $productUrlPathGenerator;
     $this->urlFinder = $urlFinder;
 }
예제 #26
0
 /**
  * @param \Magento\Framework\App\Config\ReinitableConfigInterface $config
  * @param \Magento\Framework\Event\ManagerInterface $eventManager
  * @param \Magento\Backend\Model\Config\Structure $configStructure
  * @param \Magento\Framework\DB\TransactionFactory $transactionFactory
  * @param \Magento\Backend\Model\Config\Loader $configLoader
  * @param \Magento\Framework\App\Config\ValueFactory $configValueFactory
  * @param \Magento\Framework\Store\StoreManagerInterface $storeManager
  * @param array $data
  */
 public function __construct(\Magento\Framework\App\Config\ReinitableConfigInterface $config, \Magento\Framework\Event\ManagerInterface $eventManager, \Magento\Backend\Model\Config\Structure $configStructure, \Magento\Framework\DB\TransactionFactory $transactionFactory, \Magento\Backend\Model\Config\Loader $configLoader, \Magento\Framework\App\Config\ValueFactory $configValueFactory, \Magento\Framework\Store\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;
 }
예제 #27
0
파일: State.php 프로젝트: aiesh/magento2
 /**
  * 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 = array(self::STEP_SELECT_ADDRESSES => new \Magento\Framework\Object(array('label' => __('Select Addresses'))), self::STEP_SHIPPING => new \Magento\Framework\Object(array('label' => __('Shipping Information'))), self::STEP_BILLING => new \Magento\Framework\Object(array('label' => __('Billing Information'))), self::STEP_OVERVIEW => new \Magento\Framework\Object(array('label' => __('Place Order'))), self::STEP_SUCCESS => new \Magento\Framework\Object(array('label' => __('Order Success'))));
     foreach ($this->_steps as $step) {
         $step->setIsComplete(false);
     }
     $this->_steps[$this->getActiveStep()]->setIsActive(true);
 }
예제 #28
0
 /**
  * @param \Magento\Framework\Event\ManagerInterface $eventManager
  * @param \Magento\Sales\Model\Order\InvoiceFactory $orderInvoiceFactory
  * @param \Magento\Sales\Model\Order\Invoice\ItemFactory $invoiceItemFactory
  * @param \Magento\Sales\Model\Order\ShipmentFactory $orderShipmentFactory
  * @param \Magento\Sales\Model\Order\Shipment\ItemFactory $shipmentItemFactory
  * @param \Magento\Sales\Model\Order\CreditmemoFactory $creditmemoFactory
  * @param \Magento\Sales\Model\Order\Creditmemo\ItemFactory $creditmemoItemFactory
  * @param \Magento\Framework\Object\Copy $objectCopyService
  * @param array $data
  *
  * @SuppressWarnings(PHPMD.ExcessiveParameterList)
  */
 public function __construct(\Magento\Framework\Event\ManagerInterface $eventManager, \Magento\Sales\Model\Order\InvoiceFactory $orderInvoiceFactory, \Magento\Sales\Model\Order\Invoice\ItemFactory $invoiceItemFactory, \Magento\Sales\Model\Order\ShipmentFactory $orderShipmentFactory, \Magento\Sales\Model\Order\Shipment\ItemFactory $shipmentItemFactory, \Magento\Sales\Model\Order\CreditmemoFactory $creditmemoFactory, \Magento\Sales\Model\Order\Creditmemo\ItemFactory $creditmemoItemFactory, \Magento\Framework\Object\Copy $objectCopyService, array $data = [])
 {
     $this->_eventManager = $eventManager;
     $this->_orderInvoiceFactory = $orderInvoiceFactory;
     $this->_invoiceItemFactory = $invoiceItemFactory;
     $this->_orderShipmentFactory = $orderShipmentFactory;
     $this->_shipmentItemFactory = $shipmentItemFactory;
     $this->_creditmemoFactory = $creditmemoFactory;
     $this->_creditmemoItemFactory = $creditmemoItemFactory;
     $this->_objectCopyService = $objectCopyService;
     parent::__construct($data);
 }
 /**
  *
  * @param \Magento\Framework\HTTP\ZendClientFactory $httpClientFactory
  * @param \Magento\Backend\App\ConfigInterface $config
  * @param \Magento\Framework\UrlInterface $url
  * @param \Inchoo\SocialConnect\Helper\Data $helperData
  * @param array $data
  */
 public function __construct(\Magento\Framework\HTTP\ZendClientFactory $httpClientFactory, \Magento\Backend\App\ConfigInterface $config, \Magento\Framework\UrlInterface $url, \Inchoo\SocialConnect\Helper\Data $helperData, array $data = array())
 {
     $this->_httpClientFactory = $httpClientFactory;
     $this->_config = $config;
     $this->_url = $url;
     $this->_redirectUri = $this->_url->sessionUrlVar($this->_url->getUrl(self::REDIRECT_URI_ROUTE));
     $this->_helperData = $helperData;
     $this->_clientId = $this->_getClientId();
     $this->_clientSecret = $this->_getClientSecret();
     $this->_config = $config;
     parent::__construct($data);
 }
예제 #30
0
 /**
  * @param \Magento\Framework\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 array $data
  */
 public function __construct(\Magento\Framework\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, array $data = array())
 {
     $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;
 }