示例#1
0
 /**
  * @param SampleDataContext $sampleDataContext
  * @param Helper $wishlistHelper
  * @param \Magento\Wishlist\Model\WishlistFactory $wishlistFactory
  */
 public function __construct(SampleDataContext $sampleDataContext, Helper $wishlistHelper, \Magento\Wishlist\Model\WishlistFactory $wishlistFactory)
 {
     $this->fixtureManager = $sampleDataContext->getFixtureManager();
     $this->csvReader = $sampleDataContext->getCsvReader();
     $this->helper = $wishlistHelper;
     $this->wishlistFactory = $wishlistFactory;
 }
 /**
  * @param SampleDataContext  $sampleDataContext
  * @param CategoryFactory    $categoryFactory
  * @param YamlParser         $yamlParser
  * @param ResourceConnection $resource
  */
 public function __construct(SampleDataContext $sampleDataContext, CategoryFactory $categoryFactory, YamlParser $yamlParser, ResourceConnection $resource)
 {
     $this->fixtureManager = $sampleDataContext->getFixtureManager();
     $this->categoryFactory = $categoryFactory;
     $this->yamlParser = $yamlParser;
     $this->resource = $resource;
 }
示例#3
0
 /**
  * @param SampleDataContext $sampleDataContext
  * @param \Magento\Catalog\Model\ProductFactory $productFactory
  * @param \Magento\Catalog\Model\Product\Initialization\Helper\ProductLinks $linksInitializer
  */
 public function __construct(SampleDataContext $sampleDataContext, \Magento\Catalog\Model\ProductFactory $productFactory, \Magento\Catalog\Model\Product\Initialization\Helper\ProductLinks $linksInitializer)
 {
     $this->fixtureManager = $sampleDataContext->getFixtureManager();
     $this->csvReader = $sampleDataContext->getCsvReader();
     $this->productFactory = $productFactory;
     $this->linksInitializer = $linksInitializer;
 }
示例#4
0
 /**
  * @param SampleDataContext $sampleDataContext
  * @param \Magento\Catalog\Model\ResourceModel\Product\CollectionFactory $productCollectionFactory
  * @param \Magento\Framework\App\Config\Storage\WriterInterface $configWriter
  */
 public function __construct(SampleDataContext $sampleDataContext, \Magento\Catalog\Model\ResourceModel\Product\CollectionFactory $productCollectionFactory, \Magento\Framework\App\Config\Storage\WriterInterface $configWriter)
 {
     $this->fixtureManager = $sampleDataContext->getFixtureManager();
     $this->csvReader = $sampleDataContext->getCsvReader();
     $this->productCollection = $productCollectionFactory->create()->addAttributeToSelect('sku');
     $this->configWriter = $configWriter;
 }
示例#5
0
 /**
  * @param SampleDataContext $sampleDataContext
  * @param \Magento\Cms\Model\BlockFactory $blockFactory
  * @param Block\Converter $converter
  * @param \Magento\Catalog\Api\CategoryRepositoryInterface $categoryRepository
  */
 public function __construct(SampleDataContext $sampleDataContext, \Magento\Cms\Model\BlockFactory $blockFactory, Block\Converter $converter, \Magento\Catalog\Api\CategoryRepositoryInterface $categoryRepository)
 {
     $this->fixtureManager = $sampleDataContext->getFixtureManager();
     $this->csvReader = $sampleDataContext->getCsvReader();
     $this->blockFactory = $blockFactory;
     $this->converter = $converter;
     $this->categoryRepository = $categoryRepository;
 }
示例#6
0
 /**
  * @param SampleDataContext $sampleDataContext
  * @param ProductFactory $productFactory
  * @param GalleryResource $galleryResource
  * @param \Magento\Eav\Model\Config $eavConfig
  */
 public function __construct(SampleDataContext $sampleDataContext, ProductFactory $productFactory, GalleryResource $galleryResource, \Magento\Eav\Model\Config $eavConfig)
 {
     $this->fixtureManager = $sampleDataContext->getFixtureManager();
     $this->csvReader = $sampleDataContext->getCsvReader();
     $this->galleryResource = $galleryResource;
     $this->productFactory = $productFactory;
     $this->eavConfig = $eavConfig;
 }
示例#7
0
 /**
  * @param SampleDataContext $sampleDataContext
  * @param \Magento\Catalog\Model\CategoryFactory $categoryFactory
  * @param \Magento\Catalog\Model\ResourceModel\Category\TreeFactory $resourceCategoryTreeFactory
  * @param \Magento\Store\Model\StoreManagerInterface $storeManager
  */
 public function __construct(SampleDataContext $sampleDataContext, \Magento\Catalog\Model\CategoryFactory $categoryFactory, \Magento\Catalog\Model\ResourceModel\Category\TreeFactory $resourceCategoryTreeFactory, \Magento\Store\Model\StoreManagerInterface $storeManager)
 {
     $this->fixtureManager = $sampleDataContext->getFixtureManager();
     $this->csvReader = $sampleDataContext->getCsvReader();
     $this->categoryFactory = $categoryFactory;
     $this->resourceCategoryTreeFactory = $resourceCategoryTreeFactory;
     $this->storeManager = $storeManager;
 }
示例#8
0
 /**
  * @param SampleDataContext $sampleDataContext
  * @param RuleFactory $ruleFactory
  * @param RuleCollectionFactory $ruleCollectionFactory
  * @param \Magento\CatalogRuleSampleData\Model\Rule $catalogRule
  * @param \Magento\Eav\Model\Config $eavConfig
  */
 public function __construct(SampleDataContext $sampleDataContext, RuleFactory $ruleFactory, RuleCollectionFactory $ruleCollectionFactory, \Magento\CatalogRuleSampleData\Model\Rule $catalogRule, \Magento\Eav\Model\Config $eavConfig)
 {
     $this->fixtureManager = $sampleDataContext->getFixtureManager();
     $this->csvReader = $sampleDataContext->getCsvReader();
     $this->ruleFactory = $ruleFactory;
     $this->ruleCollectionFactory = $ruleCollectionFactory;
     $this->catalogRule = $catalogRule;
     $this->eavConfig = $eavConfig;
 }
示例#9
0
 /**
  * @param SampleDataContext $sampleDataContext
  * @param Order\Converter $converter
  * @param Order\Processor $orderProcessor
  * @param \Magento\Sales\Model\ResourceModel\Order\CollectionFactory $orderCollectionFactory
  * @param \Magento\Customer\Api\CustomerRepositoryInterface $customerRepository
  */
 public function __construct(SampleDataContext $sampleDataContext, Order\Converter $converter, Order\Processor $orderProcessor, \Magento\Sales\Model\ResourceModel\Order\CollectionFactory $orderCollectionFactory, \Magento\Customer\Api\CustomerRepositoryInterface $customerRepository)
 {
     $this->fixtureManager = $sampleDataContext->getFixtureManager();
     $this->csvReader = $sampleDataContext->getCsvReader();
     $this->converter = $converter;
     $this->orderProcessor = $orderProcessor;
     $this->orderCollectionFactory = $orderCollectionFactory;
     $this->customerRepository = $customerRepository;
 }
示例#10
0
 /**
  * @param SampleDataContext  $sampleDataContext
  * @param PostFactory        $postFactory
  * @param CategoryFactory    $categoryFactory
  * @param ProductFactory     $productFactory
  * @param Config             $config
  * @param YamlParser         $yamlParser
  * @param ResourceConnection $resource
  */
 public function __construct(SampleDataContext $sampleDataContext, PostFactory $postFactory, CategoryFactory $categoryFactory, ProductFactory $productFactory, Config $config, YamlParser $yamlParser, ResourceConnection $resource)
 {
     $this->fixtureManager = $sampleDataContext->getFixtureManager();
     $this->postFactory = $postFactory;
     $this->categoryFactory = $categoryFactory;
     $this->productFactory = $productFactory;
     $this->config = $config;
     $this->yamlParser = $yamlParser;
     $this->resource = $resource;
 }
示例#11
0
 /**
  * @param SampleDataContext $sampleDataContext
  * @param \Magento\Widget\Model\Widget\InstanceFactory $widgetFactory
  * @param \Magento\Theme\Model\ResourceModel\Theme\CollectionFactory $themeCollectionFactory
  * @param \Magento\Cms\Model\BlockFactory $cmsBlockFactory
  * @param \Magento\Widget\Model\ResourceModel\Widget\Instance\CollectionFactory $appCollectionFactory
  * @param \Magento\Catalog\Model\ResourceModel\Category\CollectionFactory $categoryFactory
  */
 public function __construct(SampleDataContext $sampleDataContext, \Magento\Widget\Model\Widget\InstanceFactory $widgetFactory, \Magento\Theme\Model\ResourceModel\Theme\CollectionFactory $themeCollectionFactory, \Magento\Cms\Model\BlockFactory $cmsBlockFactory, \Magento\Widget\Model\ResourceModel\Widget\Instance\CollectionFactory $appCollectionFactory, \Magento\Catalog\Model\ResourceModel\Category\CollectionFactory $categoryFactory)
 {
     $this->fixtureManager = $sampleDataContext->getFixtureManager();
     $this->csvReader = $sampleDataContext->getCsvReader();
     $this->widgetFactory = $widgetFactory;
     $this->themeCollectionFactory = $themeCollectionFactory;
     $this->cmsBlockFactory = $cmsBlockFactory;
     $this->appCollectionFactory = $appCollectionFactory;
     $this->categoryFactory = $categoryFactory;
 }
示例#12
0
 /**
  * @param SampleDataContext $sampleDataContext
  * @param RuleFactory $ruleFactory
  * @param JobFactory $jobFactory
  * @param \Magento\Catalog\Model\ResourceModel\Category\CollectionFactory $categoryCollectionFactory
  * @param \Magento\Customer\Model\GroupFactory $groupFactory
  * @param \Magento\Store\Model\WebsiteFactory $websiteFactory
  */
 public function __construct(SampleDataContext $sampleDataContext, RuleFactory $ruleFactory, JobFactory $jobFactory, \Magento\Catalog\Model\ResourceModel\Category\CollectionFactory $categoryCollectionFactory, \Magento\Customer\Model\GroupFactory $groupFactory, \Magento\Store\Model\WebsiteFactory $websiteFactory)
 {
     $this->fixtureManager = $sampleDataContext->getFixtureManager();
     $this->csvReader = $sampleDataContext->getCsvReader();
     $this->ruleFactory = $ruleFactory;
     $this->jobFactory = $jobFactory;
     $this->categoryCollectionFactory = $categoryCollectionFactory;
     $this->groupFactory = $groupFactory;
     $this->websiteFactory = $websiteFactory;
 }
示例#13
0
 /**
  * @param SampleDataContext $sampleDataContext
  * @param \Magento\OfflineShipping\Model\ResourceModel\Carrier\Tablerate $tablerate
  * @param \Magento\Framework\App\ResourceModel $resource
  * @param \Magento\Directory\Model\ResourceModel\Region\CollectionFactory $regionCollectionFactory
  * @param \Magento\Framework\App\Cache\TypeListInterface $cacheTypeList
  * @param \Magento\Framework\App\Config\Storage\WriterInterface $configWriter
  * @param \Magento\Store\Model\StoreManagerInterface $storeManager
  */
 public function __construct(SampleDataContext $sampleDataContext, \Magento\OfflineShipping\Model\ResourceModel\Carrier\Tablerate $tablerate, \Magento\Framework\App\ResourceConnection $resource, \Magento\Directory\Model\ResourceModel\Region\CollectionFactory $regionCollectionFactory, \Magento\Framework\App\Cache\TypeListInterface $cacheTypeList, \Magento\Framework\App\Config\Storage\WriterInterface $configWriter, \Magento\Store\Model\StoreManagerInterface $storeManager)
 {
     $this->fixtureManager = $sampleDataContext->getFixtureManager();
     $this->csvReader = $sampleDataContext->getCsvReader();
     $this->tablerate = $tablerate;
     $this->resource = $resource;
     $this->regionCollectionFactory = $regionCollectionFactory;
     $this->cacheTypeList = $cacheTypeList;
     $this->configWriter = $configWriter;
     $this->storeManager = $storeManager;
 }
示例#14
0
 /**
  * Product constructor.
  * @param SampleDataContext $sampleDataContext
  * @param \Magento\Catalog\Model\ProductFactory $productFactory
  * @param \Magento\Catalog\Model\ConfigFactory $catalogConfig
  * @param Product\Converter $converter
  * @param Product\Gallery $gallery
  * @param \Magento\Store\Model\StoreManagerInterface $storeManager
  * @param \Magento\Eav\Model\Config $eavConfig
  */
 public function __construct(SampleDataContext $sampleDataContext, \Magento\Catalog\Model\ProductFactory $productFactory, \Magento\Catalog\Model\ConfigFactory $catalogConfig, Product\Converter $converter, Product\Gallery $gallery, \Magento\Store\Model\StoreManagerInterface $storeManager, \Magento\Eav\Model\Config $eavConfig)
 {
     $this->fixtureManager = $sampleDataContext->getFixtureManager();
     $this->productFactory = $productFactory;
     $this->catalogConfig = $catalogConfig->create();
     $this->converter = $converter;
     $this->csvReader = $sampleDataContext->getCsvReader();
     $this->gallery = $gallery;
     $this->storeManager = $storeManager;
     $this->eavConfig = $eavConfig;
 }
示例#15
0
 /**
  * @param SampleDataContext $sampleDataContext
  * @param \Magento\Catalog\Model\ResourceModel\Eav\AttributeFactory $attributeFactory
  * @param \Magento\Eav\Model\Entity\Attribute\SetFactory $attributeSetFactory
  * @param \Magento\Eav\Model\ResourceModel\Entity\Attribute\Option\CollectionFactory $attrOptionCollectionFactory
  * @param \Magento\Catalog\Helper\Product $productHelper
  * @param \Magento\Eav\Model\Config $eavConfig
  * @param StoreManagerInterface $storeManager
  */
 public function __construct(SampleDataContext $sampleDataContext, \Magento\Catalog\Model\ResourceModel\Eav\AttributeFactory $attributeFactory, \Magento\Eav\Model\Entity\Attribute\SetFactory $attributeSetFactory, \Magento\Eav\Model\ResourceModel\Entity\Attribute\Option\CollectionFactory $attrOptionCollectionFactory, \Magento\Catalog\Helper\Product $productHelper, \Magento\Eav\Model\Config $eavConfig, \Magento\Store\Model\StoreManagerInterface $storeManager)
 {
     $this->fixtureManager = $sampleDataContext->getFixtureManager();
     $this->csvReader = $sampleDataContext->getCsvReader();
     $this->attributeFactory = $attributeFactory;
     $this->attributeSetFactory = $attributeSetFactory;
     $this->attrOptionCollectionFactory = $attrOptionCollectionFactory;
     $this->productHelper = $productHelper;
     $this->eavConfig = $eavConfig;
     $this->storeManager = $storeManager;
 }
示例#16
0
 /**
  * @param SampleDataContext $sampleDataContext
  * @param \Magento\Tax\Api\TaxRuleRepositoryInterface $taxRuleRepository
  * @param \Magento\Tax\Api\Data\TaxRuleInterfaceFactory $ruleFactory
  * @param \Magento\Tax\Api\TaxRateRepositoryInterface $taxRateRepository
  * @param \Magento\Tax\Api\Data\TaxRateInterfaceFactory $rateFactory
  * @param \Magento\Tax\Model\Calculation\RateFactory $taxRateFactory
  * @param \Magento\Framework\Api\SearchCriteriaBuilder $criteriaBuilder
  * @param \Magento\Framework\Api\FilterBuilder $filterBuilder
  */
 public function __construct(SampleDataContext $sampleDataContext, \Magento\Tax\Api\TaxRuleRepositoryInterface $taxRuleRepository, \Magento\Tax\Api\Data\TaxRuleInterfaceFactory $ruleFactory, \Magento\Tax\Api\TaxRateRepositoryInterface $taxRateRepository, \Magento\Tax\Api\Data\TaxRateInterfaceFactory $rateFactory, \Magento\Tax\Model\Calculation\RateFactory $taxRateFactory, \Magento\Framework\Api\SearchCriteriaBuilder $criteriaBuilder, \Magento\Framework\Api\FilterBuilder $filterBuilder)
 {
     $this->fixtureManager = $sampleDataContext->getFixtureManager();
     $this->csvReader = $sampleDataContext->getCsvReader();
     $this->taxRuleRepository = $taxRuleRepository;
     $this->ruleFactory = $ruleFactory;
     $this->taxRateRepository = $taxRateRepository;
     $this->rateFactory = $rateFactory;
     $this->taxRateFactory = $taxRateFactory;
     $this->criteriaBuilder = $criteriaBuilder;
     $this->filterBuilder = $filterBuilder;
 }
示例#17
0
 /**
  * @param SampleDataContext $sampleDataContext
  * @param \Magento\Review\Model\ReviewFactory $reviewFactory
  * @param \Magento\Review\Model\ResourceModel\Review\CollectionFactory $reviewCollectionFactory
  * @param \Magento\Review\Model\RatingFactory $ratingFactory
  * @param \Magento\Catalog\Model\ResourceModel\Product\CollectionFactory $productCollectionFactory
  * @param CustomerRepositoryInterface $customerAccount
  * @param \Magento\Review\Model\Rating\OptionFactory $ratingOptionsFactory
  * @param \Magento\Store\Model\StoreManagerInterface $storeManager
  */
 public function __construct(SampleDataContext $sampleDataContext, \Magento\Review\Model\ReviewFactory $reviewFactory, \Magento\Review\Model\ResourceModel\Review\CollectionFactory $reviewCollectionFactory, \Magento\Review\Model\RatingFactory $ratingFactory, \Magento\Catalog\Model\ResourceModel\Product\CollectionFactory $productCollectionFactory, CustomerRepositoryInterface $customerAccount, \Magento\Review\Model\Rating\OptionFactory $ratingOptionsFactory, \Magento\Store\Model\StoreManagerInterface $storeManager)
 {
     $this->fixtureManager = $sampleDataContext->getFixtureManager();
     $this->csvReader = $sampleDataContext->getCsvReader();
     $this->reviewFactory = $reviewFactory;
     $this->reviewCollectionFactory = $reviewCollectionFactory;
     $this->ratingFactory = $ratingFactory;
     $this->productCollection = $productCollectionFactory->create()->addAttributeToSelect('sku');
     $this->customerRepository = $customerAccount;
     $this->ratingOptionsFactory = $ratingOptionsFactory;
     $this->storeManager = $storeManager;
 }
示例#18
0
 /**
  * @param SampleDataContext $sampleDataContext
  * @param \Magento\Directory\Model\CountryFactory $countryFactory
  * @param \Magento\Customer\Api\Data\CustomerInterfaceFactory $customerFactory
  * @param \Magento\Customer\Api\Data\AddressInterfaceFactory $addressFactory
  * @param \Magento\Customer\Api\Data\RegionInterfaceFactory $regionFactory
  * @param \Magento\Customer\Api\AccountManagementInterface $accountManagement
  * @param \Magento\Store\Model\StoreManagerInterface $storeManager
  * @param \Magento\Framework\Api\DataObjectHelper $dataObjectHelper
  * @param \Magento\Framework\App\State $appState
  * @SuppressWarnings(PHPMD.ExcessiveParameterList)
  */
 public function __construct(SampleDataContext $sampleDataContext, \Magento\Directory\Model\CountryFactory $countryFactory, \Magento\Customer\Api\Data\CustomerInterfaceFactory $customerFactory, \Magento\Customer\Api\Data\AddressInterfaceFactory $addressFactory, \Magento\Customer\Api\Data\RegionInterfaceFactory $regionFactory, \Magento\Customer\Api\AccountManagementInterface $accountManagement, \Magento\Store\Model\StoreManagerInterface $storeManager, \Magento\Framework\Api\DataObjectHelper $dataObjectHelper, \Magento\Framework\App\State $appState)
 {
     $this->fixtureManager = $sampleDataContext->getFixtureManager();
     $this->csvReader = $sampleDataContext->getCsvReader();
     $this->countryFactory = $countryFactory;
     $this->customerFactory = $customerFactory;
     $this->addressFactory = $addressFactory;
     $this->regionFactory = $regionFactory;
     $this->accountManagement = $accountManagement;
     $this->storeManager = $storeManager;
     $this->dataObjectHelper = $dataObjectHelper;
     $this->appState = $appState;
 }
示例#19
0
文件: Page.php 项目: koliaGI/magento2
 /**
  * @param SampleDataContext $sampleDataContext
  * @param \Magento\Cms\Model\PageFactory $pageFactory
  */
 public function __construct(SampleDataContext $sampleDataContext, \Magento\Cms\Model\PageFactory $pageFactory)
 {
     $this->fixtureManager = $sampleDataContext->getFixtureManager();
     $this->csvReader = $sampleDataContext->getCsvReader();
     $this->pageFactory = $pageFactory;
 }
示例#20
0
 /**
  * @param SampleDataContext $sampleDataContext
  * @param HeadStyle $headStyle
  */
 public function __construct(SampleDataContext $sampleDataContext, HeadStyle $headStyle)
 {
     $this->fixtureManager = $sampleDataContext->getFixtureManager();
     $this->headStyle = $headStyle;
 }