Esempio n. 1
0
 /**
  * @param \Magento\Framework\View\Element\Template\Context $context
  * @param \Magento\Directory\Helper\Data $directoryHelper
  * @param \Magento\Framework\Json\EncoderInterface $jsonEncoder
  * @param \Magento\Framework\App\Cache\Type\Config $configCacheType
  * @param \Magento\Directory\Model\ResourceModel\Region\CollectionFactory $regionCollectionFactory
  * @param \Magento\Directory\Model\ResourceModel\Country\CollectionFactory $countryCollectionFactory
  * @param \Magento\Braintree\Helper\Data $braintreeHelper
  * @param \Magento\Braintree\Model\System\Config\Source\Country $countrySource
  * @param \Magento\Braintree\Model\Config\Cc $config
  * @param array $data
  *
  * @SuppressWarnings(PHPMD.ExcessiveParameterList)
  */
 public function __construct(\Magento\Framework\View\Element\Template\Context $context, \Magento\Directory\Helper\Data $directoryHelper, \Magento\Framework\Json\EncoderInterface $jsonEncoder, \Magento\Framework\App\Cache\Type\Config $configCacheType, \Magento\Directory\Model\ResourceModel\Region\CollectionFactory $regionCollectionFactory, \Magento\Directory\Model\ResourceModel\Country\CollectionFactory $countryCollectionFactory, \Magento\Braintree\Helper\Data $braintreeHelper, \Magento\Braintree\Model\System\Config\Source\Country $countrySource, \Magento\Braintree\Model\Config\Cc $config, array $data = [])
 {
     $this->braintreeHelper = $braintreeHelper;
     $this->countrySource = $countrySource;
     $this->config = $config;
     parent::__construct($context, $directoryHelper, $jsonEncoder, $configCacheType, $regionCollectionFactory, $countryCollectionFactory, $data);
 }
Esempio n. 2
0
 /**
  * @param \Magento\Framework\View\Element\Template\Context $context
  * @param \Magento\Directory\Helper\Data $directoryHelper
  * @param \Magento\Framework\Json\EncoderInterface $jsonEncoder
  * @param \Magento\Framework\App\Cache\Type\Config $configCacheType
  * @param \Magento\Directory\Model\ResourceModel\Region\CollectionFactory $regionCollectionFactory
  * @param \Magento\Directory\Model\ResourceModel\Country\CollectionFactory $countryCollectionFactory
  * @param \Magento\Framework\Module\Manager $moduleManager
  * @param \Magento\Customer\Model\Session $customerSession
  * @param \Magento\Customer\Model\Url $customerUrl
  * @param array $data
  *
  * @SuppressWarnings(PHPMD.ExcessiveParameterList)
  */
 public function __construct(\Magento\Framework\View\Element\Template\Context $context, \Magento\Directory\Helper\Data $directoryHelper, \Magento\Framework\Json\EncoderInterface $jsonEncoder, \Magento\Framework\App\Cache\Type\Config $configCacheType, \Magento\Directory\Model\ResourceModel\Region\CollectionFactory $regionCollectionFactory, \Magento\Directory\Model\ResourceModel\Country\CollectionFactory $countryCollectionFactory, \Magento\Framework\Module\Manager $moduleManager, \Magento\Customer\Model\Session $customerSession, \Magento\Customer\Model\Url $customerUrl, array $data = [])
 {
     $this->_customerUrl = $customerUrl;
     $this->_moduleManager = $moduleManager;
     $this->_customerSession = $customerSession;
     parent::__construct($context, $directoryHelper, $jsonEncoder, $configCacheType, $regionCollectionFactory, $countryCollectionFactory, $data);
     $this->_isScopePrivate = false;
 }
Esempio n. 3
0
 /**
  * Constructor
  *
  * @param \Magento\Framework\View\Element\Template\Context $context
  * @param \Magento\Core\Helper\Data $coreData
  * @param \Magento\Framework\Json\EncoderInterface $jsonEncoder
  * @param \Magento\Framework\App\Cache\Type\Config $configCacheType
  * @param \Magento\Directory\Model\Resource\Region\CollectionFactory $regionCollectionFactory
  * @param \Magento\Directory\Model\Resource\Country\CollectionFactory $countryCollectionFactory
  * @param \Magento\Customer\Model\Session $customerSession
  * @param \Magento\Customer\Service\V1\CustomerAddressServiceInterface $addressService
  * @param \Magento\Customer\Service\V1\Data\AddressBuilder $addressBuilder
  * @param \Magento\Customer\Helper\Session\CurrentCustomer $currentCustomer
  * @param array $data
  *
  * @SuppressWarnings(PHPMD.ExcessiveParameterList)
  */
 public function __construct(\Magento\Framework\View\Element\Template\Context $context, \Magento\Core\Helper\Data $coreData, \Magento\Framework\Json\EncoderInterface $jsonEncoder, \Magento\Framework\App\Cache\Type\Config $configCacheType, \Magento\Directory\Model\Resource\Region\CollectionFactory $regionCollectionFactory, \Magento\Directory\Model\Resource\Country\CollectionFactory $countryCollectionFactory, \Magento\Customer\Model\Session $customerSession, \Magento\Customer\Service\V1\CustomerAddressServiceInterface $addressService, \Magento\Customer\Service\V1\Data\AddressBuilder $addressBuilder, \Magento\Customer\Helper\Session\CurrentCustomer $currentCustomer, array $data = array())
 {
     $this->_customerSession = $customerSession;
     $this->_addressService = $addressService;
     $this->_addressBuilder = $addressBuilder;
     $this->currentCustomer = $currentCustomer;
     parent::__construct($context, $coreData, $jsonEncoder, $configCacheType, $regionCollectionFactory, $countryCollectionFactory, $data);
     $this->_isScopePrivate = true;
 }
Esempio n. 4
0
 /**
  * Constructor
  *
  * @param \Magento\Framework\View\Element\Template\Context $context
  * @param \Magento\Directory\Helper\Data $directoryHelper
  * @param \Magento\Framework\Json\EncoderInterface $jsonEncoder
  * @param \Magento\Framework\App\Cache\Type\Config $configCacheType
  * @param \Magento\Directory\Model\ResourceModel\Region\CollectionFactory $regionCollectionFactory
  * @param \Magento\Directory\Model\ResourceModel\Country\CollectionFactory $countryCollectionFactory
  * @param \Magento\Customer\Model\Session $customerSession
  * @param \Magento\Customer\Api\AddressRepositoryInterface $addressRepository
  * @param \Magento\Customer\Api\Data\AddressInterfaceFactory $addressDataFactory
  * @param \Magento\Customer\Helper\Session\CurrentCustomer $currentCustomer
  * @param \Magento\Framework\Api\DataObjectHelper $dataObjectHelper
  * @param array $data
  *
  * @SuppressWarnings(PHPMD.ExcessiveParameterList)
  */
 public function __construct(\Magento\Framework\View\Element\Template\Context $context, \Magento\Directory\Helper\Data $directoryHelper, \Magento\Framework\Json\EncoderInterface $jsonEncoder, \Magento\Framework\App\Cache\Type\Config $configCacheType, \Magento\Directory\Model\ResourceModel\Region\CollectionFactory $regionCollectionFactory, \Magento\Directory\Model\ResourceModel\Country\CollectionFactory $countryCollectionFactory, \Magento\Customer\Model\Session $customerSession, \Magento\Customer\Api\AddressRepositoryInterface $addressRepository, \Magento\Customer\Api\Data\AddressInterfaceFactory $addressDataFactory, \Magento\Customer\Helper\Session\CurrentCustomer $currentCustomer, \Magento\Framework\Api\DataObjectHelper $dataObjectHelper, array $data = [])
 {
     $this->_customerSession = $customerSession;
     $this->_addressRepository = $addressRepository;
     $this->addressDataFactory = $addressDataFactory;
     $this->currentCustomer = $currentCustomer;
     $this->dataObjectHelper = $dataObjectHelper;
     parent::__construct($context, $directoryHelper, $jsonEncoder, $configCacheType, $regionCollectionFactory, $countryCollectionFactory, $data);
 }