Example #1
0
 /**
  * @param \Magento\Framework\App\Resource $resource
  * @param \Magento\Framework\StoreManagerInterface $storeManager
  * @param \Magento\Eav\Model\Resource\Entity\Type $eavEntityType
  * @param \Magento\Eav\Model\Config $eavConfig
  * @param LockValidatorInterface $lockValidator
  */
 public function __construct(\Magento\Framework\App\Resource $resource, \Magento\Framework\StoreManagerInterface $storeManager, \Magento\Eav\Model\Resource\Entity\Type $eavEntityType, \Magento\Eav\Model\Config $eavConfig, LockValidatorInterface $lockValidator)
 {
     $this->attrLockValidator = $lockValidator;
     $this->_eavConfig = $eavConfig;
     parent::__construct($resource, $storeManager, $eavEntityType);
 }
Example #2
0
 /**
  * @param \Magento\Framework\Model\Resource\Db\Context $context
  * @param \Magento\Store\Model\StoreManagerInterface $storeManager
  * @param \Magento\Eav\Model\Resource\Entity\Type $eavEntityType
  * @param \Magento\Eav\Model\Config $eavConfig
  * @param LockValidatorInterface $lockValidator
  * @param string|null $resourcePrefix
  */
 public function __construct(\Magento\Framework\Model\Resource\Db\Context $context, \Magento\Store\Model\StoreManagerInterface $storeManager, \Magento\Eav\Model\Resource\Entity\Type $eavEntityType, \Magento\Eav\Model\Config $eavConfig, LockValidatorInterface $lockValidator, $resourcePrefix = null)
 {
     $this->attrLockValidator = $lockValidator;
     $this->_eavConfig = $eavConfig;
     parent::__construct($context, $storeManager, $eavEntityType, $resourcePrefix);
 }