/** * @param WebserviceGuesser $webserviceGuesser * @param FamilyMappingManager $familyMappingManager * @param AttributeMappingManager $attributeMappingManager * @param AttributeGroupMappingManager $attributeGroupMappingManager * @param MagentoMappingMerger $attributeIdMappingMerger * @param MagentoSoapClientParametersRegistry $clientParametersRegistry */ public function __construct(WebserviceGuesser $webserviceGuesser, FamilyMappingManager $familyMappingManager, AttributeMappingManager $attributeMappingManager, AttributeGroupMappingManager $attributeGroupMappingManager, MagentoMappingMerger $attributeIdMappingMerger, MagentoSoapClientParametersRegistry $clientParametersRegistry) { parent::__construct($webserviceGuesser, $clientParametersRegistry); $this->attributeMappingManager = $attributeMappingManager; $this->familyMappingManager = $familyMappingManager; $this->attributeGroupMappingManager = $attributeGroupMappingManager; $this->attributeIdMappingMerger = $attributeIdMappingMerger; $this->attributeIdMappingMerger->setParameters($this->getClientParameters(), $this->getDefaultStoreView()); }
/** * Set mapper parameters. * * @param MagentoSoapClientParameters $clientParameters * @param string $defaultStoreView */ public function setParameters(MagentoSoapClientParameters $clientParameters, $defaultStoreView) { $this->clientParameters = $clientParameters; $this->defaultStoreView = $defaultStoreView; $this->attributeCodeMappingMerger->setParameters($clientParameters, $defaultStoreView); }
/** * Called after the configuration is set */ protected function afterConfigurationSet() { parent::afterConfigurationSet(); $this->attributeMappingMerger->setParameters($this->getClientParameters(), $this->getDefaultStoreView()); }
/** * Called after the configuration is set */ protected function afterConfigurationSet() { parent::afterConfigurationSet(); $this->attributeCodeMappingMerger->setParameters($this->getClientParameters(), $this->getSoapUrl()); }