httpContext = $httpContext; $this->_customerUrl = $customerUrl; parent::__construct($context, $data); } public function getCompareListUrl() { return $this->_loadObject(HelperHelper::class)->getCompareListUrl(); } /** * @return string */ public function getLoginUrl() { return $this->_customerUrl->getLoginUrl(); } /** * @return string */ public function getLogoutUrl() { return $this->_customerUrl->getLogoutUrl(); } /** * Is logged in * * @return bool */ public function isLoggedIn() { return $this->httpContext->getValue(Context::CONTEXT_AUTH); } }