/** * @inheritdoc */ public function __wakeup() { parent::__wakeup(); $objectManager = ObjectManager::getInstance(); $this->_storeManager = $objectManager->get(\Magento\Store\Model\StoreManagerInterface::class); $this->_productTypeConfigurable = $objectManager->get(Configurable::class); $this->_catalogData = $objectManager->get(\Magento\Catalog\Helper\Data::class); $this->metadataPool = $objectManager->get(MetadataPool::class); $this->configurableResource = $objectManager->get(ConfigurableResource::class); }