public __construct ( Magento\Framework\App\ResourceConnection $resource, Magento\Store\Model\StoreManagerInterface $storeManager, Magento\Framework\EntityManager\MetadataPool $metadataPool, Magento\Catalog\Model\Product\Type $catalogProductType, string $entityType = ProductInterface::class ) | ||
$resource | Magento\Framework\App\ResourceConnection | Database adpater. |
$storeManager | Magento\Store\Model\StoreManagerInterface | Store manager. |
$metadataPool | Magento\Framework\EntityManager\MetadataPool | Metadata Pool. |
$catalogProductType | Magento\Catalog\Model\Product\Type | Product type. |
$entityType | string | Product entity type. |