Skip to content

Commit 40e8a16

Browse files
author
Tommy Quissens
committed
Add customer login url from Customer Url model to checkout config so it contains the referer url if necessary
1 parent c1a4d89 commit 40e8a16

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

app/code/Magento/Customer/Model/Checkout/ConfigProvider.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,24 +23,24 @@ class ConfigProvider implements ConfigProviderInterface
2323
/**
2424
* @var UrlInterface
2525
*/
26-
protected $urlBuilder;
26+
protected $customerUrl;
2727

2828
/**
2929
* @var ScopeConfigInterface
3030
*/
3131
protected $scopeConfig;
3232

3333
/**
34-
* @param UrlInterface $urlBuilder
34+
* @param Url $customerUrl
3535
* @param StoreManagerInterface $storeManager
3636
* @param ScopeConfigInterface $scopeConfig
3737
*/
3838
public function __construct(
39-
UrlInterface $urlBuilder,
39+
Url $customerUrl,
4040
StoreManagerInterface $storeManager,
4141
ScopeConfigInterface $scopeConfig
4242
) {
43-
$this->urlBuilder = $urlBuilder;
43+
$this->customerUrl = $customerUrl;
4444
$this->storeManager = $storeManager;
4545
$this->scopeConfig = $scopeConfig;
4646
}
@@ -78,7 +78,7 @@ protected function isAutocompleteEnabled()
7878
*/
7979
protected function getLoginUrl()
8080
{
81-
return $this->urlBuilder->getUrl(Url::ROUTE_ACCOUNT_LOGIN);
81+
return $this->customerUrl->getLoginUrl();
8282
}
8383

8484
/**

0 commit comments

Comments
 (0)