18 private $urlSecurityInfo;
23 private $storeManager;
32 \
Magento\Framework\Url\SecurityInfoInterface $urlSecurityInfo,
35 $this->scopeConfig = $scopeConfig;
36 $this->urlSecurityInfo = $urlSecurityInfo;
49 return $this->storeManager->getStore()->getBaseUrl(
'link',
true) . ltrim(
$alias,
'/');
61 $this->scopeConfig->getValue(
67 || $this->scopeConfig->isSetFlag(
71 $this->scopeConfig->getValue(
76 ) ==
'https' && $this->urlSecurityInfo->isSecure(
$path);
86 $store = $this->storeManager->getStore();
const XML_PATH_UNSECURE_BASE_URL
getCurrentSecureUrl(\Magento\Framework\App\RequestInterface $request)
const XML_PATH_SECURE_IN_FRONTEND
const XML_PATH_SECURE_BASE_URL
__construct(\Magento\Framework\App\Config\ScopeConfigInterface $scopeConfig, \Magento\Framework\Url\SecurityInfoInterface $urlSecurityInfo, StoreManagerInterface $storeManager)