示例#1
0
 /**
  * Initialize dependencies.
  *
  * @param \Magento\Framework\View\Element\Template\Context $context
  * @param \Magento\Multishipping\Model\Checkout\Type\Multishipping $multishipping
  * @param CustomerAddressHelper $customerAddressHelper
  * @param \Magento\Customer\Model\Address\Mapper $addressMapper
  * @param AddressRepositoryInterface $addressRepository
  * @param \Magento\Framework\Api\SearchCriteriaBuilder $searchCriteriaBuilder
  * @param \Magento\Framework\Api\FilterBuilder $filterBuilder
  * @param array $data
  */
 public function __construct(\Magento\Framework\View\Element\Template\Context $context, \Magento\Multishipping\Model\Checkout\Type\Multishipping $multishipping, CustomerAddressHelper $customerAddressHelper, \Magento\Customer\Model\Address\Mapper $addressMapper, AddressRepositoryInterface $addressRepository, \Magento\Framework\Api\SearchCriteriaBuilder $searchCriteriaBuilder, \Magento\Framework\Api\FilterBuilder $filterBuilder, array $data = [])
 {
     $this->_customerAddressHelper = $customerAddressHelper;
     $this->addressMapper = $addressMapper;
     $this->addressRepository = $addressRepository;
     $this->searchCriteriaBuilder = $searchCriteriaBuilder;
     $this->filterBuilder = $filterBuilder;
     parent::__construct($context, $multishipping, $data);
 }
示例#2
0
 /**
  * @param \Magento\Framework\View\Element\Template\Context $context
  * @param \Magento\Multishipping\Model\Checkout\Type\Multishipping $multishipping
  * @param array $data
  */
 public function __construct(\Magento\Framework\View\Element\Template\Context $context, \Magento\Multishipping\Model\Checkout\Type\Multishipping $multishipping, array $data = [])
 {
     parent::__construct($context, $multishipping, $data);
     $this->_isScopePrivate = true;
 }
示例#3
0
文件: Select.php 项目: aiesh/magento2
 /**
  * Initialize dependencies.
  *
  * @param \Magento\Framework\View\Element\Template\Context $context
  * @param \Magento\Multishipping\Model\Checkout\Type\Multishipping $multishipping
  * @param CustomerAddressServiceInterface $customerAddressService
  * @param CustomerAddressHelper $customerAddressHelper
  * @param array $data
  */
 public function __construct(\Magento\Framework\View\Element\Template\Context $context, \Magento\Multishipping\Model\Checkout\Type\Multishipping $multishipping, CustomerAddressServiceInterface $customerAddressService, CustomerAddressHelper $customerAddressHelper, array $data = array())
 {
     $this->_customerAddressService = $customerAddressService;
     $this->_customerAddressHelper = $customerAddressHelper;
     parent::__construct($context, $multishipping, $data);
 }