Example #1
0
 /**
  * @param Context $context
  */
 public function __construct(Context $context)
 {
     $this->translateInline = $context->getTranslateInline();
     $this->_moduleManager = $context->getModuleManager();
     $this->_logger = $context->getLogger();
     $this->_request = $context->getRequest();
     $this->_urlBuilder = $context->getUrlBuilder();
     $this->_httpHeader = $context->getHttpHeader();
     $this->_eventManager = $context->getEventManager();
     $this->_remoteAddress = $context->getRemoteAddress();
     $this->_cacheConfig = $context->getCacheConfig();
 }
 /**
  * @param Context $context
  */
 public function __construct(Context $context)
 {
     $this->_moduleManager = $context->getModuleManager();
     $this->_logger = $context->getLogger();
     $this->_request = $context->getRequest();
     $this->_urlBuilder = $context->getUrlBuilder();
     $this->_httpHeader = $context->getHttpHeader();
     $this->_eventManager = $context->getEventManager();
     $this->_remoteAddress = $context->getRemoteAddress();
     $this->_cacheConfig = $context->getCacheConfig();
     $this->urlEncoder = $context->getUrlEncoder();
     $this->urlDecoder = $context->getUrlDecoder();
     $this->scopeConfig = $context->getScopeConfig();
 }