Esempio n. 1
0
 /**
  * @param \Magento\Framework\Data\Collection\EntityFactory $entityFactory
  * @param \Psr\Log\LoggerInterface $logger
  * @param \Magento\Framework\Data\Collection\Db\FetchStrategyInterface $fetchStrategy
  * @param \Magento\Framework\Event\ManagerInterface $eventManager
  * @param \Magento\Review\Helper\Data $reviewData
  * @param \Magento\Review\Model\Rating\Option\VoteFactory $voteFactory
  * @param \Magento\Store\Model\StoreManagerInterface $storeManager
  * @param mixed $connection
  * @param \Magento\Framework\Model\ResourceModel\Db\AbstractDb $resource
  */
 public function __construct(\Magento\Framework\Data\Collection\EntityFactory $entityFactory, \Psr\Log\LoggerInterface $logger, \Magento\Framework\Data\Collection\Db\FetchStrategyInterface $fetchStrategy, \Magento\Framework\Event\ManagerInterface $eventManager, \Magento\Review\Helper\Data $reviewData, \Magento\Review\Model\Rating\Option\VoteFactory $voteFactory, \Magento\Store\Model\StoreManagerInterface $storeManager, \Magento\Framework\DB\Adapter\AdapterInterface $connection = null, \Magento\Framework\Model\ResourceModel\Db\AbstractDb $resource = null)
 {
     $this->_reviewData = $reviewData;
     $this->_voteFactory = $voteFactory;
     $this->_storeManager = $storeManager;
     parent::__construct($entityFactory, $logger, $fetchStrategy, $eventManager, $connection, $resource);
 }
Esempio n. 2
0
 /**
  * @param \Magento\Framework\Data\Collection\EntityFactory $entityFactory
  * @param \Psr\Log\LoggerInterface $logger
  * @param \Magento\Framework\Data\Collection\Db\FetchStrategyInterface $fetchStrategy
  * @param \Magento\Framework\Event\ManagerInterface $eventManager
  * @param \Magento\Store\Model\StoreManagerInterface $storeManager
  * @param \Magento\ConfigurableProduct\Model\Product\Type\Configurable $catalogProductTypeConfigurable
  * @param \Magento\Catalog\Helper\Data $catalogData
  * @param \Magento\ConfigurableProduct\Model\ResourceModel\Product\Type\Configurable\Attribute $resource
  * @param \Magento\Framework\DB\Adapter\AdapterInterface $connection
  * @SuppressWarnings(PHPMD.ExcessiveParameterList)
  */
 public function __construct(\Magento\Framework\Data\Collection\EntityFactory $entityFactory, \Psr\Log\LoggerInterface $logger, \Magento\Framework\Data\Collection\Db\FetchStrategyInterface $fetchStrategy, \Magento\Framework\Event\ManagerInterface $eventManager, \Magento\Store\Model\StoreManagerInterface $storeManager, \Magento\ConfigurableProduct\Model\Product\Type\Configurable $catalogProductTypeConfigurable, \Magento\Catalog\Helper\Data $catalogData, \Magento\ConfigurableProduct\Model\ResourceModel\Product\Type\Configurable\Attribute $resource, \Magento\Framework\DB\Adapter\AdapterInterface $connection = null)
 {
     $this->_storeManager = $storeManager;
     $this->_productTypeConfigurable = $catalogProductTypeConfigurable;
     $this->_catalogData = $catalogData;
     parent::__construct($entityFactory, $logger, $fetchStrategy, $eventManager, $connection, $resource);
 }
Esempio n. 3
0
 /**
  * @param \Magento\Framework\Data\Collection\EntityFactory $entityFactory
  * @param \Psr\Log\LoggerInterface $logger
  * @param \Magento\Framework\Data\Collection\Db\FetchStrategyInterface $fetchStrategy
  * @param \Magento\Framework\Event\ManagerInterface $eventManager
  * @param \Magento\Catalog\Model\ResourceModel\Product\Collection $productResource
  * @param \Magento\Customer\Model\ResourceModel\Customer $customerResource
  * @param \Magento\Sales\Model\ResourceModel\Order\Collection $orderResource
  * @param \Magento\Framework\DB\Adapter\AdapterInterface $connection
  * @param \Magento\Framework\Model\ResourceModel\Db\AbstractDb $resource
  */
 public function __construct(\Magento\Framework\Data\Collection\EntityFactory $entityFactory, \Psr\Log\LoggerInterface $logger, \Magento\Framework\Data\Collection\Db\FetchStrategyInterface $fetchStrategy, \Magento\Framework\Event\ManagerInterface $eventManager, \Magento\Catalog\Model\ResourceModel\Product\Collection $productResource, \Magento\Customer\Model\ResourceModel\Customer $customerResource, \Magento\Sales\Model\ResourceModel\Order\Collection $orderResource, \Magento\Framework\DB\Adapter\AdapterInterface $connection = null, \Magento\Framework\Model\ResourceModel\Db\AbstractDb $resource = null)
 {
     parent::__construct($entityFactory, $logger, $fetchStrategy, $eventManager, $connection, $resource);
     $this->productResource = $productResource;
     $this->customerResource = $customerResource;
     $this->orderResource = $orderResource;
 }
Esempio n. 4
0
 /**
  * @param EntityFactory $entityFactory
  * @param Logger $logger
  * @param FetchStrategy $fetchStrategy
  * @param EventManager $eventManager
  * @param string $mainTable
  * @param string $resourceModel
  * @throws \Magento\Framework\Exception\LocalizedException
  */
 public function __construct(EntityFactory $entityFactory, Logger $logger, FetchStrategy $fetchStrategy, EventManager $eventManager, $mainTable, $resourceModel)
 {
     $this->_init($this->document, $resourceModel);
     $this->setMainTable(true);
     $this->setMainTable($this->_resource->getTable($mainTable));
     parent::__construct($entityFactory, $logger, $fetchStrategy, $eventManager, null, null);
     $this->_setIdFieldName($this->getResource()->getIdFieldName());
 }
Esempio n. 5
0
 /**
  * @param \Magento\Framework\Data\Collection\EntityFactory $entityFactory
  * @param \Psr\Log\LoggerInterface $logger
  * @param \Magento\Framework\Data\Collection\Db\FetchStrategyInterface $fetchStrategy
  * @param \Magento\Framework\Event\ManagerInterface $eventManager
  * @param \Magento\Catalog\Model\ResourceModel\Product\Option\Value\CollectionFactory $optionValueCollectionFactory
  * @param \Magento\Store\Model\StoreManagerInterface $storeManager
  * @param \Magento\Framework\Model\Entity\MetadataPool $metadataPool
  * @param JoinProcessorInterface $joinProcessor
  * @param \Magento\Framework\DB\Adapter\AdapterInterface $connection
  * @param \Magento\Framework\Model\ResourceModel\Db\AbstractDb $resource
  * @SuppressWarnings(PHPMD.ExcessiveParameterList)
  */
 public function __construct(\Magento\Framework\Data\Collection\EntityFactory $entityFactory, \Psr\Log\LoggerInterface $logger, \Magento\Framework\Data\Collection\Db\FetchStrategyInterface $fetchStrategy, \Magento\Framework\Event\ManagerInterface $eventManager, \Magento\Catalog\Model\ResourceModel\Product\Option\Value\CollectionFactory $optionValueCollectionFactory, \Magento\Store\Model\StoreManagerInterface $storeManager, \Magento\Framework\Model\Entity\MetadataPool $metadataPool, JoinProcessorInterface $joinProcessor, \Magento\Framework\DB\Adapter\AdapterInterface $connection = null, \Magento\Framework\Model\ResourceModel\Db\AbstractDb $resource = null)
 {
     $this->_optionValueCollectionFactory = $optionValueCollectionFactory;
     $this->_storeManager = $storeManager;
     $this->metadataPool = $metadataPool;
     $this->joinProcessor = $joinProcessor;
     parent::__construct($entityFactory, $logger, $fetchStrategy, $eventManager, $connection, $resource);
 }
Esempio n. 6
0
 /**
  * @param EntityFactory $entityFactory
  * @param Logger $logger
  * @param FetchStrategy $fetchStrategy
  * @param EventManager $eventManager
  * @param string $mainTable
  * @param string $resourceModel
  * @throws \Magento\Framework\Exception\LocalizedException
  */
 public function __construct(EntityFactory $entityFactory, Logger $logger, FetchStrategy $fetchStrategy, EventManager $eventManager, $mainTable, $resourceModel)
 {
     $this->_init('Magento\\Framework\\View\\Element\\UiComponent\\DataProvider\\Document', $resourceModel);
     $this->setMainTable(true);
     $this->setMainTable($this->_resource->getTable($mainTable));
     parent::__construct($entityFactory, $logger, $fetchStrategy, $eventManager, null, null);
     $this->_setIdFieldName($this->getResource()->getIdFieldName());
 }
Esempio n. 7
0
 /**
  * @param \Magento\Framework\Data\Collection\EntityFactoryInterface $entityFactory
  * @param \Psr\Log\LoggerInterface $logger
  * @param \Magento\Framework\Data\Collection\Db\FetchStrategyInterface $fetchStrategy
  * @param \Magento\Framework\Event\ManagerInterface $eventManager
  * @param null|\Zend_Db_Adapter_Abstract $mainTable
  * @param \Magento\Framework\Model\ResourceModel\Db\AbstractDb $eventPrefix
  * @param string $eventObject
  * @param string $resourceModel
  * @param string $model
  * @param string|null $connection
  * @param \Magento\Framework\Model\ResourceModel\Db\AbstractDb $resource
  *
  * @SuppressWarnings(PHPMD.ExcessiveParameterList)
  */
 public function __construct(\Magento\Framework\Data\Collection\EntityFactoryInterface $entityFactory, \Psr\Log\LoggerInterface $logger, \Magento\Framework\Data\Collection\Db\FetchStrategyInterface $fetchStrategy, \Magento\Framework\Event\ManagerInterface $eventManager, $mainTable, $eventPrefix, $eventObject, $resourceModel, $model = 'Magento\\Sales\\Model\\ResourceModel\\Grid\\Document', $connection = null, \Magento\Framework\Model\ResourceModel\Db\AbstractDb $resource = null)
 {
     $this->_eventPrefix = $eventPrefix;
     $this->_eventObject = $eventObject;
     $this->_init($model, $resourceModel);
     $this->setMainTable($mainTable);
     parent::__construct($entityFactory, $logger, $fetchStrategy, $eventManager, $connection, $resource);
 }
 /**
  * @constructor
  * @param \Magento\Framework\Data\Collection\EntityFactory $entityFactory
  * @param \Psr\Log\LoggerInterface $logger
  * @param \Magento\Framework\Data\Collection\Db\FetchStrategyInterface $fetchStrategy
  * @param \Magento\Framework\Event\ManagerInterface $eventManager
  * @param null $connection
  * @param \Magento\Framework\Model\ResourceModel\Db\AbstractDb $resource
  * @param array $fixture
  */
 public function __construct(\Magento\Framework\Data\Collection\EntityFactory $entityFactory, \Psr\Log\LoggerInterface $logger, \Magento\Framework\Data\Collection\Db\FetchStrategyInterface $fetchStrategy, \Magento\Framework\Event\ManagerInterface $eventManager, \Magento\Framework\DB\Adapter\AdapterInterface $connection = null, \Magento\Framework\Model\ResourceModel\Db\AbstractDb $resource = null, array $fixture = [])
 {
     $this->setModel('Magento\\Framework\\DataObject');
     $this->setResourceModel('Magento\\Mtf\\Util\\Generate\\Repository\\RepositoryResource');
     $resource = $this->getResource();
     $resource->setFixture($fixture);
     parent::__construct($entityFactory, $logger, $fetchStrategy, $eventManager, $connection, $resource);
 }
 /**
  * @param \Magento\Framework\Data\Collection\EntityFactoryInterface    $entityFactory
  * @param \Psr\Log\LoggerInterface                                     $logger
  * @param \Magento\Framework\Data\Collection\Db\FetchStrategyInterface $fetchStrategy
  * @param \Magento\Framework\Event\ManagerInterface                    $eventManager
  * @param \Zend_Db_Adapter_Abstract                                    $connection
  * @param \Magento\Framework\Model\ResourceModel\Db\AbstractDb              $resource
  */
 public function __construct(\Magento\Framework\Data\Collection\EntityFactoryInterface $entityFactory, \Psr\Log\LoggerInterface $logger, \Magento\Framework\Data\Collection\Db\FetchStrategyInterface $fetchStrategy, \Magento\Framework\Event\ManagerInterface $eventManager, \Magento\Store\Model\StoreManagerInterface $storeManager, $connection = null, \Magento\Framework\Model\ResourceModel\Db\AbstractDb $resource = null)
 {
     parent::__construct($entityFactory, $logger, $fetchStrategy, $eventManager, $connection, $resource);
     $this->_storeManager = $storeManager;
     if ($storeViewId = $this->_storeManager->getStore()->getId()) {
         $this->_storeViewId = $storeViewId;
     }
 }
Esempio n. 10
0
 /**
  * Constructor
  *
  * @param EntityFactoryInterface $entityFactory
  * @param LoggerInterface        $logger
  * @param FetchStrategyInterface $fetchStrategy
  * @param EventManagerInterface  $eventManager
  * @param null                   $index
  */
 public function __construct(EntityFactoryInterface $entityFactory, LoggerInterface $logger, FetchStrategyInterface $fetchStrategy, EventManagerInterface $eventManager, $index = null)
 {
     /** @var \Mirasvit\Search\Model\Index\External\Wordpress\Post\Index $index */
     $this->index = $index;
     parent::__construct($entityFactory, $logger, $fetchStrategy, $eventManager);
     $this->setConnection($this->index->getConnection());
     $this->setModel('\\Mirasvit\\Search\\Model\\Index\\External\\Wordpress\\Post\\Item');
     $this->_initSelect();
 }
Esempio n. 11
0
 /**
  * @param \Magento\Framework\Data\Collection\EntityFactory $entityFactory
  * @param \Psr\Log\LoggerInterface $logger
  * @param \Magento\Framework\Data\Collection\Db\FetchStrategyInterface $fetchStrategy
  * @param \Magento\Framework\Event\ManagerInterface $eventManager
  * @param \Magento\Framework\Locale\ListsInterface $localeLists
  * @param \Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig
  * @param \Magento\Directory\Model\ResourceModel\CountryFactory $countryFactory
  * @param \Magento\Framework\Stdlib\ArrayUtils $arrayUtils
  * @param \Magento\Framework\Locale\ResolverInterface $localeResolver
  * @param \Magento\Framework\App\Helper\AbstractHelper $helperData
  * @param mixed $connection
  * @param \Magento\Framework\Model\ResourceModel\Db\AbstractDb $resource
  * @SuppressWarnings(PHPMD.ExcessiveParameterList)
  */
 public function __construct(\Magento\Framework\Data\Collection\EntityFactory $entityFactory, \Psr\Log\LoggerInterface $logger, \Magento\Framework\Data\Collection\Db\FetchStrategyInterface $fetchStrategy, \Magento\Framework\Event\ManagerInterface $eventManager, \Magento\Framework\Locale\ListsInterface $localeLists, \Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig, \Magento\Directory\Model\ResourceModel\CountryFactory $countryFactory, \Magento\Framework\Stdlib\ArrayUtils $arrayUtils, \Magento\Framework\Locale\ResolverInterface $localeResolver, \Magento\Framework\App\Helper\AbstractHelper $helperData, \Magento\Framework\DB\Adapter\AdapterInterface $connection = null, \Magento\Framework\Model\ResourceModel\Db\AbstractDb $resource = null)
 {
     parent::__construct($entityFactory, $logger, $fetchStrategy, $eventManager, $connection, $resource);
     $this->_scopeConfig = $scopeConfig;
     $this->_localeLists = $localeLists;
     $this->_localeResolver = $localeResolver;
     $this->_countryFactory = $countryFactory;
     $this->_arrayUtils = $arrayUtils;
     $this->helperData = $helperData;
 }
Esempio n. 12
0
 /**
  * @param \Magento\Framework\Data\Collection\EntityFactory $entityFactory
  * @param \Psr\Log\LoggerInterface $logger
  * @param \Magento\Framework\Data\Collection\Db\FetchStrategyInterface $fetchStrategy
  * @param \Magento\Framework\Event\ManagerInterface $eventManager
  * @param \Magento\Framework\Stdlib\DateTime $dateTime
  * @param mixed $connection
  * @param \Magento\Framework\Model\ResourceModel\Db\AbstractDb $resource
  */
 public function __construct(
     \Magento\Framework\Data\Collection\EntityFactory $entityFactory,
     \Psr\Log\LoggerInterface $logger,
     \Magento\Framework\Data\Collection\Db\FetchStrategyInterface $fetchStrategy,
     \Magento\Framework\Event\ManagerInterface $eventManager,
     \Magento\Framework\Stdlib\DateTime $dateTime,
     \Magento\Framework\DB\Adapter\AdapterInterface $connection = null,
     \Magento\Framework\Model\ResourceModel\Db\AbstractDb $resource = null
 ) {
     $this->dateTime = $dateTime;
     parent::__construct($entityFactory, $logger, $fetchStrategy, $eventManager, $connection, $resource);
 }
Esempio n. 13
0
 /**
  * @param \Magento\Framework\Data\Collection\EntityFactory $entityFactory
  * @param \Psr\Log\LoggerInterface $logger
  * @param \Magento\Framework\Data\Collection\Db\FetchStrategyInterface $fetchStrategy
  * @param \Magento\Framework\Event\ManagerInterface $eventManager
  * @param \Magento\Customer\Model\ResourceModel\Customer $customerResource
  * @param \Magento\Eav\Helper\Data $eavHelper
  * @param mixed $connection
  * @param \Magento\Framework\Model\ResourceModel\Db\AbstractDb $resource
  */
 public function __construct(
     \Magento\Framework\Data\Collection\EntityFactory $entityFactory,
     \Psr\Log\LoggerInterface $logger,
     \Magento\Framework\Data\Collection\Db\FetchStrategyInterface $fetchStrategy,
     \Magento\Framework\Event\ManagerInterface $eventManager,
     \Magento\Customer\Model\ResourceModel\Customer $customerResource,
     \Magento\Eav\Helper\Data $eavHelper,
     \Magento\Framework\DB\Adapter\AdapterInterface $connection = null,
     \Magento\Framework\Model\ResourceModel\Db\AbstractDb $resource = null
 ) {
     parent::__construct($entityFactory, $logger, $fetchStrategy, $eventManager, $connection, $resource);
     $this->_eavHelper = $eavHelper;
     $this->_customerResource = $customerResource;
 }
Esempio n. 14
0
 /**
  * @param \Magento\Framework\Data\Collection\EntityFactory $entityFactory
  * @param \Psr\Log\LoggerInterface $logger
  * @param \Magento\Framework\Data\Collection\Db\FetchStrategyInterface $fetchStrategy
  * @param \Magento\Framework\Event\ManagerInterface $eventManager
  * @param \Magento\Framework\Notification\MessageList $messageList
  * @param mixed $connection
  * @param \Magento\Framework\Model\ResourceModel\Db\AbstractDb $resource
  */
 public function __construct(\Magento\Framework\Data\Collection\EntityFactory $entityFactory, \Psr\Log\LoggerInterface $logger, \Magento\Framework\Data\Collection\Db\FetchStrategyInterface $fetchStrategy, \Magento\Framework\Event\ManagerInterface $eventManager, \Magento\Framework\Notification\MessageList $messageList, \Magento\Framework\DB\Adapter\AdapterInterface $connection = null, \Magento\Framework\Model\ResourceModel\Db\AbstractDb $resource = null)
 {
     $this->_messageList = $messageList;
     parent::__construct($entityFactory, $logger, $fetchStrategy, $eventManager, $connection, $resource);
 }
Esempio n. 15
0
 public function __construct(\Ess\M2ePro\Helper\Factory $helperFactory, \Ess\M2ePro\Model\ActiveRecord\Factory $activeRecordFactory, \Magento\Framework\Data\Collection\EntityFactoryInterface $entityFactory, \Psr\Log\LoggerInterface $logger, \Magento\Framework\Data\Collection\Db\FetchStrategyInterface $fetchStrategy, \Magento\Framework\Event\ManagerInterface $eventManager, \Magento\Framework\DB\Adapter\AdapterInterface $connection = null, \Magento\Framework\Model\ResourceModel\Db\AbstractDb $resource = null)
 {
     $this->helperFactory = $helperFactory;
     $this->activeRecordFactory = $activeRecordFactory;
     parent::__construct($entityFactory, $logger, $fetchStrategy, $eventManager, $connection, $resource);
 }
Esempio n. 16
0
 /**
  * @param EntityFactory $entityFactory
  * @param Logger $logger
  * @param FetchStrategyInterface $fetchStrategy
  * @param ManagerInterface $eventManager
  * @param \Magento\Store\Model\ResourceModel\Store\CollectionFactory $storeCollectionFactory
  * @param StoreManagerInterface $storeManager
  */
 public function __construct(EntityFactory $entityFactory, Logger $logger, FetchStrategyInterface $fetchStrategy, ManagerInterface $eventManager, \Magento\Store\Model\ResourceModel\Store\CollectionFactory $storeCollectionFactory, StoreManagerInterface $storeManager)
 {
     $this->_storeCollectionFactory = $storeCollectionFactory;
     $this->_storeManager = $storeManager;
     parent::__construct($entityFactory, $logger, $fetchStrategy, $eventManager);
 }
Esempio n. 17
0
 /**
  * @param EntityFactory          $entityFactory The entity factory
  * @param LoggerInterface        $logger        The internal logger
  * @param FetchStrategyInterface $fetchStrategy The fetch strategy
  * @param ManagerInterface       $eventManager  The event manager
  * @param Data                   $resource      The resource model being used
  * @param string                 $scope         The configuration scope
  * @param mixed                  $connection    Database Connection
  * @param mixed                  $scopeCode     The scope code
  */
 public function __construct(EntityFactory $entityFactory, LoggerInterface $logger, FetchStrategyInterface $fetchStrategy, ManagerInterface $eventManager, Data $resource, $scope, AdapterInterface $connection = null, $scopeCode = null)
 {
     $this->scope = $scope;
     $this->scopeCode = $scopeCode;
     parent::__construct($entityFactory, $logger, $fetchStrategy, $eventManager, $connection, $resource);
 }
 public function __construct(\Magento\Framework\Data\Collection\EntityFactoryInterface $entityFactory, \Psr\Log\LoggerInterface $logger, \Magento\Framework\Data\Collection\Db\FetchStrategyInterface $fetchStrategy, \Magento\Framework\Event\ManagerInterface $eventManager, \Magento\Framework\DB\Adapter\AdapterInterface $connection = null, \Magento\Framework\Model\ResourceModel\Db\AbstractDb $resource = null)
 {
     $this->_objectManager = \Magento\Framework\App\ObjectManager::getInstance();
     parent::__construct($entityFactory, $logger, $fetchStrategy, $eventManager, $connection, $resource);
 }
Esempio n. 19
0
 /**
  * @param \Magento\Framework\Data\Collection\EntityFactory $entityFactory
  * @param \Psr\Log\LoggerInterface $logger
  * @param \Magento\Framework\Data\Collection\Db\FetchStrategyInterface $fetchStrategy
  * @param \Magento\Framework\Event\ManagerInterface $eventManager
  * @param \Magento\CatalogInventory\Api\StockConfigurationInterface $stockConfiguration
  * @param \Magento\Sales\Helper\Admin $adminhtmlSales
  * @param \Magento\Store\Model\StoreManagerInterface $storeManager
  * @param \Magento\Framework\Stdlib\DateTime\DateTime $date
  * @param \Magento\Wishlist\Model\Config $wishlistConfig
  * @param \Magento\Catalog\Model\Product\Visibility $productVisibility
  * @param \Magento\Framework\App\ResourceConnection $coreResource
  * @param \Magento\Wishlist\Model\ResourceModel\Item\Option\CollectionFactory $optionCollectionFactory
  * @param \Magento\Catalog\Model\ResourceModel\Product\CollectionFactory $productCollectionFactory
  * @param \Magento\Catalog\Model\ResourceModel\ConfigFactory $catalogConfFactory
  * @param \Magento\Catalog\Model\Entity\AttributeFactory $catalogAttrFactory
  * @param \Magento\Wishlist\Model\ResourceModel\Item $resource
  * @param \Magento\Framework\App\State $appState
  * @param \Magento\Framework\DB\Adapter\AdapterInterface $connection
  *
  * @SuppressWarnings(PHPMD.ExcessiveParameterList)
  */
 public function __construct(\Magento\Framework\Data\Collection\EntityFactory $entityFactory, \Psr\Log\LoggerInterface $logger, \Magento\Framework\Data\Collection\Db\FetchStrategyInterface $fetchStrategy, \Magento\Framework\Event\ManagerInterface $eventManager, \Magento\CatalogInventory\Api\StockConfigurationInterface $stockConfiguration, \Magento\Sales\Helper\Admin $adminhtmlSales, \Magento\Store\Model\StoreManagerInterface $storeManager, \Magento\Framework\Stdlib\DateTime\DateTime $date, \Magento\Wishlist\Model\Config $wishlistConfig, \Magento\Catalog\Model\Product\Visibility $productVisibility, \Magento\Framework\App\ResourceConnection $coreResource, \Magento\Wishlist\Model\ResourceModel\Item\Option\CollectionFactory $optionCollectionFactory, \Magento\Catalog\Model\ResourceModel\Product\CollectionFactory $productCollectionFactory, \Magento\Catalog\Model\ResourceModel\ConfigFactory $catalogConfFactory, \Magento\Catalog\Model\Entity\AttributeFactory $catalogAttrFactory, \Magento\Wishlist\Model\ResourceModel\Item $resource, \Magento\Framework\App\State $appState, \Magento\Framework\DB\Adapter\AdapterInterface $connection = null)
 {
     $this->stockConfiguration = $stockConfiguration;
     $this->_adminhtmlSales = $adminhtmlSales;
     $this->_storeManager = $storeManager;
     $this->_date = $date;
     $this->_wishlistConfig = $wishlistConfig;
     $this->_productVisibility = $productVisibility;
     $this->_coreResource = $coreResource;
     $this->_optionCollectionFactory = $optionCollectionFactory;
     $this->_productCollectionFactory = $productCollectionFactory;
     $this->_catalogConfFactory = $catalogConfFactory;
     $this->_catalogAttrFactory = $catalogAttrFactory;
     $this->_appState = $appState;
     parent::__construct($entityFactory, $logger, $fetchStrategy, $eventManager, $connection, $resource);
 }
Esempio n. 20
0
 /**
  * @param \Magento\Framework\Data\Collection\EntityFactory $entityFactory
  * @param Logger $logger
  * @param FetchStrategyInterface $fetchStrategy
  * @param ManagerInterface $eventManager
  * @param \Magento\Store\Model\StoreManagerInterface $storeManager
  * @param mixed $connection
  * @param AbstractDb $resource
  * @codeCoverageIgnore
  */
 public function __construct(EntityFactory $entityFactory, Logger $logger, FetchStrategyInterface $fetchStrategy, ManagerInterface $eventManager, StoreManagerInterface $storeManager, \Magento\Framework\DB\Adapter\AdapterInterface $connection = null, AbstractDb $resource = null)
 {
     $this->_storeManager = $storeManager;
     parent::__construct($entityFactory, $logger, $fetchStrategy, $eventManager, $connection, $resource);
 }
Esempio n. 21
0
 /**
  * constructor
  *
  * @param EntityFactoryInterface $entityFactory
  * @param LoggerInterface $logger
  * @param FetchStrategyInterface $fetchStrategy
  * @param ManagerInterface $eventManager
  * @param StoreManagerInterface $storeManager
  * @param null $connection
  * @param AbstractDb $resource
  */
 public function __construct(EntityFactoryInterface $entityFactory, LoggerInterface $logger, FetchStrategyInterface $fetchStrategy, ManagerInterface $eventManager, StoreManagerInterface $storeManager, $connection = null, AbstractDb $resource = null)
 {
     parent::__construct($entityFactory, $logger, $fetchStrategy, $eventManager, $connection, $resource);
     $this->storeManager = $storeManager;
 }
 /**
  * @param \Magento\Framework\Data\Collection\EntityFactory $entityFactory
  * @param \Psr\Log\LoggerInterface $logger
  * @param \Magento\Framework\Data\Collection\Db\FetchStrategyInterface $fetchStrategy
  * @param \Magento\Framework\Event\ManagerInterface $eventManager
  * @param \Magento\Framework\Stdlib\DateTime $dateTime
  * @param mixed $connection
  * @param \Magento\Framework\Model\ResourceModel\Db\AbstractDb $resource
  */
 public function __construct(EntityFactory $entityFactory, LoggerInterface $logger, FetchStrategyInterface $fetchStrategy, ManagerInterface $eventManager, DateTime $dateTime, AdapterInterface $connection = null, AbstractDb $resource = null)
 {
     $this->dateTime = $dateTime;
     parent::__construct($entityFactory, $logger, $fetchStrategy, $eventManager, $connection, $resource);
 }
Esempio n. 23
0
 /**
  * @param \Magento\Framework\Data\Collection\EntityFactory $entityFactory
  * @param \Psr\Log\LoggerInterface $logger
  * @param \Magento\Framework\Data\Collection\Db\FetchStrategyInterface $fetchStrategy
  * @param \Magento\Framework\Event\ManagerInterface $eventManager
  * @param \Magento\Framework\App\ResourceConnection $coreResource
  * @param \Magento\Store\Model\StoreManagerInterface $storeManager
  * @param mixed $connection
  * @param \Magento\Framework\Model\ResourceModel\Db\AbstractDb $resource
  * @codeCoverageIgnore
  */
 public function __construct(\Magento\Framework\Data\Collection\EntityFactory $entityFactory, \Psr\Log\LoggerInterface $logger, \Magento\Framework\Data\Collection\Db\FetchStrategyInterface $fetchStrategy, \Magento\Framework\Event\ManagerInterface $eventManager, \Magento\Framework\App\ResourceConnection $coreResource, \Magento\Store\Model\StoreManagerInterface $storeManager, \Magento\Framework\DB\Adapter\AdapterInterface $connection = null, \Magento\Framework\Model\ResourceModel\Db\AbstractDb $resource = null)
 {
     $this->_storeManager = $storeManager;
     $this->_coreResource = $coreResource;
     parent::__construct($entityFactory, $logger, $fetchStrategy, $eventManager, $connection, $resource);
 }
Esempio n. 24
0
 /**
  * @param \Magento\Framework\Data\Collection\EntityFactory $entityFactory
  * @param \Psr\Log\LoggerInterface $logger
  * @param \Magento\Framework\Data\Collection\Db\FetchStrategyInterface $fetchStrategy
  * @param \Magento\Framework\Event\ManagerInterface $eventManager
  * @param \Magento\Config\Model\ResourceModel\Config\Data $resource
  * @param string $scope
  * @param mixed $connection
  * @param mixed $scopeId
  */
 public function __construct(\Magento\Framework\Data\Collection\EntityFactory $entityFactory, \Psr\Log\LoggerInterface $logger, \Magento\Framework\Data\Collection\Db\FetchStrategyInterface $fetchStrategy, \Magento\Framework\Event\ManagerInterface $eventManager, \Magento\Config\Model\ResourceModel\Config\Data $resource, $scope, \Magento\Framework\DB\Adapter\AdapterInterface $connection = null, $scopeId = null)
 {
     $this->_scope = $scope;
     $this->_scopeId = $scopeId;
     parent::__construct($entityFactory, $logger, $fetchStrategy, $eventManager, $connection, $resource);
 }