/** * {@inheritdoc} */ protected function beforeExecute() { parent::beforeExecute(); $this->optionNormalizer = $this->normalizerGuesser->getOptionNormalizer($this->getClientParameters()); $magentoStoreViews = $this->webservice->getStoreViewsList(); $this->globalContext['magentoStoreViews'] = $magentoStoreViews; $this->globalContext['attributeCodeMapping'] = $this->attributeCodeMappingMerger->getMapping(); }
/** * Function called before all process */ protected function beforeExecute() { parent::beforeExecute(); $this->categoryNormalizer = $this->normalizerGuesser->getCategoryNormalizer($this->getClientParameters()); $magentoStoreViews = $this->webservice->getStoreViewsList(); $magentoCategories = $this->webservice->getCategoriesStatus(); $this->globalContext = array_merge($this->globalContext, ['magentoCategories' => $magentoCategories, 'magentoUrl' => $this->getSoapUrl(), 'defaultLocale' => $this->defaultLocale, 'magentoStoreViews' => $magentoStoreViews, 'categoryMapping' => $this->categoryMappingMerger->getMapping(), 'defaultStoreView' => $this->getDefaultStoreView()]); }
/** * {@inheritdoc} */ protected function beforeExecute() { parent::beforeExecute(); $magentoStoreViews = $this->webservice->getStoreViewsList(); $this->familyNormalizer = $this->normalizerGuesser->getFamilyNormalizer($this->getClientParameters()); $this->globalContext['magentoFamilies'] = $this->webservice->getAttributeSetList(); $this->globalContext['magentoStoreViews'] = $magentoStoreViews; $this->globalContext['defaultStoreView'] = $this->getDefaultStoreView(); }
/** * Function called before all process */ protected function beforeExecute() { parent::beforeExecute(); $this->productNormalizer = $this->normalizerGuesser->getProductNormalizer($this->getClientParameters(), $this->enabled, $this->visibility, $this->currency); $magentoStoreViews = $this->webservice->getStoreViewsList(); $magentoAttributes = $this->webservice->getAllAttributes(); $magentoAttributesOptions = $this->webservice->getAllAttributesOptions(); $this->globalContext = array_merge($this->globalContext, ['channel' => $this->channel, 'website' => $this->website, 'magentoAttributes' => $magentoAttributes, 'magentoAttributesOptions' => $magentoAttributesOptions, 'magentoStoreViews' => $magentoStoreViews, 'categoryMapping' => $this->categoryMappingMerger->getMapping(), 'attributeCodeMapping' => $this->attributeMappingMerger->getMapping()]); }