Skip to content
Snippets Groups Projects
Commit 6f7219f4 authored by Tommy Quissens's avatar Tommy Quissens
Browse files

Add customer login url from Customer Url model to checkout config so it...

Add customer login url from Customer Url model to checkout config so it contains the referer url if necessary
parent f2f94cf3
No related merge requests found
...@@ -23,7 +23,7 @@ class ConfigProvider implements ConfigProviderInterface ...@@ -23,7 +23,7 @@ class ConfigProvider implements ConfigProviderInterface
/** /**
* @var UrlInterface * @var UrlInterface
*/ */
protected $urlBuilder; protected $customerUrl;
/** /**
* @var ScopeConfigInterface * @var ScopeConfigInterface
...@@ -31,16 +31,16 @@ class ConfigProvider implements ConfigProviderInterface ...@@ -31,16 +31,16 @@ class ConfigProvider implements ConfigProviderInterface
protected $scopeConfig; protected $scopeConfig;
/** /**
* @param UrlInterface $urlBuilder * @param Url $customerUrl
* @param StoreManagerInterface $storeManager * @param StoreManagerInterface $storeManager
* @param ScopeConfigInterface $scopeConfig * @param ScopeConfigInterface $scopeConfig
*/ */
public function __construct( public function __construct(
UrlInterface $urlBuilder, Url $customerUrl,
StoreManagerInterface $storeManager, StoreManagerInterface $storeManager,
ScopeConfigInterface $scopeConfig ScopeConfigInterface $scopeConfig
) { ) {
$this->urlBuilder = $urlBuilder; $this->customerUrl = $customerUrl;
$this->storeManager = $storeManager; $this->storeManager = $storeManager;
$this->scopeConfig = $scopeConfig; $this->scopeConfig = $scopeConfig;
} }
...@@ -78,7 +78,7 @@ class ConfigProvider implements ConfigProviderInterface ...@@ -78,7 +78,7 @@ class ConfigProvider implements ConfigProviderInterface
*/ */
protected function getLoginUrl() protected function getLoginUrl()
{ {
return $this->urlBuilder->getUrl(Url::ROUTE_ACCOUNT_LOGIN); return $this->customerUrl->getLoginUrl();
} }
/** /**
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment