示例#1
0
文件: Js.php 项目: Riskified/magento2
 public function __construct(\Magento\Framework\View\Element\Template\Context $context, \Riskified\Decider\Api\Config $apiConfig, \Magento\Framework\Session\SessionManagerInterface $session, array $data = [])
 {
     $this->validator = $context->getValidator();
     $this->resolver = $context->getResolver();
     $this->_filesystem = $context->getFilesystem();
     $this->templateEnginePool = $context->getEnginePool();
     $this->_storeManager = $context->getStoreManager();
     $this->_appState = $context->getAppState();
     $this->templateContext = $this;
     $this->pageConfig = $context->getPageConfig();
     $this->apiConfig = $apiConfig;
     $this->session = $session;
     parent::__construct($context, $data);
 }
示例#2
0
 /**
  * Constructor
  *
  * @param Template\Context $context
  * @param array $data
  */
 public function __construct(Template\Context $context, array $data = [])
 {
     $this->_filesystem = $context->getFilesystem();
     $this->_viewFileSystem = $context->getViewFileSystem();
     $this->templateEnginePool = $context->getEnginePool();
     $this->_storeManager = $context->getStoreManager();
     $this->_appState = $context->getAppState();
     $this->templateContext = $this;
     $this->pageConfig = $context->getPageConfig();
     parent::__construct($context, $data);
 }