예제 #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->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();
     parent::__construct($context, $data);
 }