public function __construct($pConfigFile = '') { if ($pConfigFile != '') { $this->parseFile($pConfigFile); } parent::__construct(); }
/** * @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); } } }
/** * Constructor * * @author Art <*****@*****.**> * * @param array $cfg Default configuration overrides */ public function __construct(array $cfg = []) { self::setDefaultConfig(); parent::__construct(self::$defaults, $cfg); }
/** * @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); } } }