Beispiel #1
0
 public function __construct(\Magento\Directory\Model\CurrencyFactory $currencyFactory, \Magento\Framework\Json\DecoderInterface $jsonDecoder, \Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig)
 {
     $this->_jsonDecoder = $jsonDecoder;
     parent::__construct($currencyFactory);
     $this->_scopeConfig = $scopeConfig;
     $this->_httpClient = new \Magento\Framework\HTTP\ZendClient();
 }
 public function __construct(\Magento\Directory\Model\CurrencyFactory $currencyFactory, \Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig, \Magento\Framework\View\Element\Context $context)
 {
     $this->filterManager = $context->getFilterManager();
     parent::__construct($currencyFactory);
     $this->_scopeConfig = $scopeConfig;
     $this->_httpClient = new \Magento\Framework\HTTP\ZendClient();
 }
 /**
  * @param \Magento\Directory\Model\CurrencyFactory $currencyFactory
  * @param \Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig
  */
 public function __construct(\Magento\Directory\Model\CurrencyFactory $currencyFactory, \Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig)
 {
     parent::__construct($currencyFactory);
     $this->scopeConfig = $scopeConfig;
 }
 /**
  * Initialize dependencies
  *
  * @param \Magento\Directory\Model\CurrencyFactory $currencyFactory
  * @param \Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig
  * @param \Magento\Framework\HTTP\ZendClientFactory $httpClientFactory
  */
 public function __construct(\Magento\Directory\Model\CurrencyFactory $currencyFactory, \Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig, \Magento\Framework\HTTP\ZendClientFactory $httpClientFactory)
 {
     parent::__construct($currencyFactory);
     $this->scopeConfig = $scopeConfig;
     $this->httpClientFactory = $httpClientFactory;
 }