Exemplo n.º 1
0
 public function __construct($pConfigFile = '')
 {
     if ($pConfigFile != '') {
         $this->parseFile($pConfigFile);
     }
     parent::__construct();
 }
Exemplo n.º 2
0
 /**
  * @param \Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig
  * @param \Magento\Directory\Helper\Data $directoryHelper
  * @param \Magento\Store\Model\StoreManagerInterface $storeManager
  * @param array $params
  * @param \Psr\Log\LoggerInterface $logger
  * @param \Magento\Framework\View\Asset\Repository
  */
 public function __construct(\Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig, \Magento\Directory\Helper\Data $directoryHelper, \Magento\Store\Model\StoreManagerInterface $storeManager, $params = [], \Psr\Log\LoggerInterface $logger, \Magento\Framework\View\Asset\Repository $assetRepo)
 {
     $this->_logger = $logger;
     parent::__construct($scopeConfig);
     $this->directoryHelper = $directoryHelper;
     $this->_storeManager = $storeManager;
     $this->_assetRepo = $assetRepo;
     if ($params) {
         $method = array_shift($params);
         $this->setMethod($method);
         if ($params) {
             $storeId = array_shift($params);
             $this->setStoreId($storeId);
         }
     }
 }
Exemplo n.º 3
0
 /**
  * Constructor
  *
  * @author Art <*****@*****.**>
  *
  * @param array $cfg Default configuration overrides
  */
 public function __construct(array $cfg = [])
 {
     self::setDefaultConfig();
     parent::__construct(self::$defaults, $cfg);
 }
Exemplo n.º 4
0
 /**
  * @param \Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig
  * @param \Magento\Directory\Helper\Data $directoryHelper
  * @param \Magento\Store\Model\StoreManagerInterface $storeManager
  * @param \Magento\Payment\Model\Source\CctypeFactory $cctypeFactory
  * @param CertFactory $certFactory
  * @param array $params
  */
 public function __construct(\Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig, \Magento\Directory\Helper\Data $directoryHelper, \Magento\Store\Model\StoreManagerInterface $storeManager, \Magento\Payment\Model\Source\CctypeFactory $cctypeFactory, \Magento\Paypal\Model\CertFactory $certFactory, $params = [])
 {
     parent::__construct($scopeConfig);
     $this->directoryHelper = $directoryHelper;
     $this->_storeManager = $storeManager;
     $this->_cctypeFactory = $cctypeFactory;
     $this->_certFactory = $certFactory;
     if ($params) {
         $method = array_shift($params);
         $this->setMethod($method);
         if ($params) {
             $storeId = array_shift($params);
             $this->setStoreId($storeId);
         }
     }
 }