/** * @param \Magento\Framework\Model\ResourceModel\Db\Context $context * @param Snapshot $entitySnapshot * @param RelationComposite $entityRelationComposite * @param Attribute $attribute * @param Manager $sequenceManager * @param string $connectionName */ public function __construct(\Magento\Framework\Model\ResourceModel\Db\Context $context, Snapshot $entitySnapshot, RelationComposite $entityRelationComposite, \Magento\Sales\Model\ResourceModel\Attribute $attribute, Manager $sequenceManager, $connectionName = null) { $this->attribute = $attribute; $this->sequenceManager = $sequenceManager; if ($connectionName === null) { $connectionName = 'sales'; } parent::__construct($context, $entitySnapshot, $entityRelationComposite, $connectionName); }
/** * @param \Magento\Framework\Model\ResourceModel\Db\Context $context * @param Snapshot $entitySnapshot, * @param RelationComposite $entityRelationComposite, * @param \Magento\Customer\Api\GroupManagementInterface $groupManagement * @param Customer\CollectionFactory $customersFactory * @param string $connectionName */ public function __construct(\Magento\Framework\Model\ResourceModel\Db\Context $context, Snapshot $entitySnapshot, RelationComposite $entityRelationComposite, \Magento\Customer\Api\GroupManagementInterface $groupManagement, \Magento\Customer\Model\ResourceModel\Customer\CollectionFactory $customersFactory, $connectionName = null) { $this->_groupManagement = $groupManagement; $this->_customersFactory = $customersFactory; parent::__construct($context, $entitySnapshot, $entityRelationComposite, $connectionName); }
/** * @param \Magento\Framework\Model\ResourceModel\Db\Context $context * @param Snapshot $entitySnapshot, * @param RelationComposite $entityRelationComposite, * @param \Magento\SalesSequence\Model\Manager $sequenceManager * @param string $connectionName */ public function __construct(\Magento\Framework\Model\ResourceModel\Db\Context $context, Snapshot $entitySnapshot, RelationComposite $entityRelationComposite, Manager $sequenceManager, $connectionName = null) { parent::__construct($context, $entitySnapshot, $entityRelationComposite, $connectionName); $this->sequenceManager = $sequenceManager; }