Ejemplo n.º 1
0
 /**
  * @param \Magento\Framework\View\Element\Template\Context $context
  * @param \Magento\Customer\Model\Session $customerSession
  * @param \Magento\Newsletter\Model\SubscriberFactory $subscriberFactory
  * @param CustomerAccountServiceInterface $customerAccountService
  * @param CustomerAddressServiceInterface $addressService
  * @param \Magento\Review\Model\Resource\Review\Product\CollectionFactory $collectionFactory
  * @param \Magento\Customer\Helper\Session\CurrentCustomer $currentCustomer
  * @param array $data
  */
 public function __construct(\Magento\Framework\View\Element\Template\Context $context, \Magento\Customer\Model\Session $customerSession, \Magento\Newsletter\Model\SubscriberFactory $subscriberFactory, CustomerAccountServiceInterface $customerAccountService, CustomerAddressServiceInterface $addressService, \Magento\Review\Model\Resource\Review\Product\CollectionFactory $collectionFactory, \Magento\Customer\Helper\Session\CurrentCustomer $currentCustomer, array $data = array())
 {
     $this->_collectionFactory = $collectionFactory;
     parent::__construct($context, $customerSession, $subscriberFactory, $customerAccountService, $addressService, $data);
     $this->_isScopePrivate = true;
     $this->currentCustomer = $currentCustomer;
 }
Ejemplo n.º 2
0
 /**
  * Constructor
  *
  * @param \Magento\Framework\View\Element\Template\Context $context
  * @param \Magento\Customer\Model\Session $customerSession
  * @param \Magento\Newsletter\Model\SubscriberFactory $subscriberFactory
  * @param CustomerAccountServiceInterface $customerAccountService
  * @param CustomerAddressServiceInterface $addressService
  * @param array $data
  */
 public function __construct(\Magento\Framework\View\Element\Template\Context $context, \Magento\Customer\Model\Session $customerSession, \Magento\Newsletter\Model\SubscriberFactory $subscriberFactory, CustomerAccountServiceInterface $customerAccountService, CustomerAddressServiceInterface $addressService, array $data = array())
 {
     parent::__construct($context, $customerSession, $subscriberFactory, $customerAccountService, $addressService, $data);
     $this->_isScopePrivate = true;
 }
 public function __construct(\Dotdigitalgroup\Email\Helper\Data $data, \Magento\Framework\View\Element\Template\Context $context, \Magento\Customer\Model\Session $customerSession, \Magento\Newsletter\Model\SubscriberFactory $subscriberFactory, \Magento\Customer\Api\CustomerRepositoryInterface $customerRepository, \Magento\Customer\Api\AccountManagementInterface $customerAccountManagement, array $data = [])
 {
     $this->_helper = $data;
     parent::__construct($context, $customerSession, $subscriberFactory, $customerRepository, $customerAccountManagement);
 }
Ejemplo n.º 4
0
 /**
  * @param \Magento\Framework\View\Element\Template\Context $context
  * @param \Magento\Customer\Model\Session $customerSession
  * @param \Magento\Newsletter\Model\SubscriberFactory $subscriberFactory
  * @param CustomerRepositoryInterface $customerRepository
  * @param AccountManagementInterface $customerAccountManagement
  * @param array $data
  */
 public function __construct(\Magento\Framework\View\Element\Template\Context $context, \Magento\Customer\Model\Session $customerSession, \Magento\Newsletter\Model\SubscriberFactory $subscriberFactory, CustomerRepositoryInterface $customerRepository, AccountManagementInterface $customerAccountManagement, array $data = [])
 {
     parent::__construct($context, $customerSession, $subscriberFactory, $customerRepository, $customerAccountManagement, $data);
     $this->_isScopePrivate = true;
 }
Ejemplo n.º 5
0
 /**
  * @param \Magento\Framework\View\Element\Template\Context $context
  * @param \Magento\Customer\Model\Session $customerSession
  * @param \Magento\Newsletter\Model\SubscriberFactory $subscriberFactory
  * @param CustomerRepositoryInterface $customerRepository
  * @param AccountManagementInterface $customerAccountManagement
  * @param \Magento\Review\Model\ResourceModel\Review\Product\CollectionFactory $collectionFactory
  * @param \Magento\Customer\Helper\Session\CurrentCustomer $currentCustomer
  * @param array $data
  */
 public function __construct(\Magento\Framework\View\Element\Template\Context $context, \Magento\Customer\Model\Session $customerSession, \Magento\Newsletter\Model\SubscriberFactory $subscriberFactory, CustomerRepositoryInterface $customerRepository, AccountManagementInterface $customerAccountManagement, \Magento\Review\Model\ResourceModel\Review\Product\CollectionFactory $collectionFactory, \Magento\Customer\Helper\Session\CurrentCustomer $currentCustomer, array $data = [])
 {
     $this->_collectionFactory = $collectionFactory;
     parent::__construct($context, $customerSession, $subscriberFactory, $customerRepository, $customerAccountManagement, $data);
     $this->currentCustomer = $currentCustomer;
 }