84 \
Magento\Framework\
Url\DecoderInterface $urlDecoder =
null,
85 \
Magento\Framework\
Url\HostChecker $hostChecker =
null 93 ->get(\
Magento\Framework\
Url\DecoderInterface::class);
95 ->get(\
Magento\Framework\
Url\HostChecker::class);
105 return $this->urlBuilder->getUrl(self::ROUTE_ACCOUNT_LOGIN, $this->
getLoginUrlParams());
116 $referer = $this->getRequestReferrer();
118 && !$this->scopeConfig->isSetFlag(
119 self::XML_PATH_CUSTOMER_STARTUP_REDIRECT_TO_DASHBOARD,
120 ScopeInterface::SCOPE_STORE
122 && !$this->customerSession->getNoReferer()
124 $referer = $this->urlBuilder->getUrl(
'*/*/*', [
'_current' =>
true,
'_use_rewrite' =>
true]);
125 $referer = $this->urlEncoder->encode($referer);
129 $params = [self::REFERER_QUERY_PARAM_NAME => $referer];
143 $referer = $this->getRequestReferrer();
146 self::REFERER_QUERY_PARAM_NAME => $referer,
149 return $this->urlBuilder->getUrl(
'customer/account/loginPost',
$params);
159 return $this->urlBuilder->getUrl(
'customer/account/logout');
169 return $this->urlBuilder->getUrl(
'customer/account');
179 return $this->urlBuilder->getUrl(
'customer/account');
189 return $this->urlBuilder->getUrl(
'customer/account/create');
199 return $this->urlBuilder->getUrl(
'customer/account/createpost');
209 return $this->urlBuilder->getUrl(
'customer/account/edit');
219 return $this->urlBuilder->getUrl(
'customer/account/editpost');
229 return $this->urlBuilder->getUrl(
'customer/account/forgotpassword');
240 return $this->urlBuilder->getUrl(
'customer/account/confirmation', [
'_query' => [
'email' =>
$email]]);
246 private function getRequestReferrer()
248 $referer = $this->request->getParam(self::REFERER_QUERY_PARAM_NAME);
249 if ($referer && $this->hostChecker->isOwnOrigin($this->urlDecoder->decode($referer))) {
getEmailConfirmationUrl($email=null)
const XML_PATH_CUSTOMER_STARTUP_REDIRECT_TO_DASHBOARD
const ROUTE_ACCOUNT_LOGIN
const REFERER_QUERY_PARAM_NAME
$params[\Magento\Store\Model\StoreManager::PARAM_RUN_CODE]
__construct(Session $customerSession, ScopeConfigInterface $scopeConfig, RequestInterface $request, UrlInterface $urlBuilder, EncoderInterface $urlEncoder, \Magento\Framework\Url\DecoderInterface $urlDecoder=null, \Magento\Framework\Url\HostChecker $hostChecker=null)