/** * {@inheritdoc} */ public function execute() { parent::beforeExecute(); $magentoProducts = $this->webservice->getProductsStatus(); $pimConfigurables = $this->getPimConfigurablesSkus(); foreach ($magentoProducts as $product) { if ($product['type'] === AbstractNormalizer::MAGENTO_CONFIGURABLE_PRODUCT_KEY && !in_array($product['sku'], $pimConfigurables)) { $this->handleProductNotInPimAnymore($product); } } }
/** * @param WebserviceGuesser $webserviceGuesser * @param MagentoSoapClientParametersRegistry $clientParametersRegistry * @param ChannelManager $channelManager * @param ProductManager $productManager * @param AttributeRepository $attributeRepository */ public function __construct(WebserviceGuesser $webserviceGuesser, MagentoSoapClientParametersRegistry $clientParametersRegistry, ChannelManager $channelManager, ProductManager $productManager, AttributeRepository $attributeRepository) { parent::__construct($webserviceGuesser, $clientParametersRegistry, $channelManager, $productManager); $this->attributeRepository = $attributeRepository; }