11 use Magento\Catalog\Model\ProductFactory;
12 use Psr\Log\LoggerInterface;
54 parent::__construct($context);
70 $typeId = $this->
getRequest()->getParam(
'type');
74 $product->setData(
'_edit_mode',
true);
79 }
catch (\Exception $e) {
81 $this->logger->critical($e);
85 $setId = (int)$this->
getRequest()->getParam(
'set');
89 $this->registry->register(
'current_product',
$product);