10 class SecurityInfo implements \Magento\Framework\Url\SecurityInfoInterface
35 public function __construct($secureUrlList = [], $excludedUrlList = [])
37 $this->secureUrlsList = $secureUrlList;
38 $this->excludedUrlsList = $excludedUrlList;
49 if (!isset($this->secureUrlsCache[
$url])) {
50 $this->secureUrlsCache[
$url] =
false;
51 foreach ($this->excludedUrlsList as $match) {
52 if (strpos(
$url, (
string)$match) === 0) {
53 return $this->secureUrlsCache[
$url];
56 foreach ($this->secureUrlsList as $match) {
57 if (strpos(
$url, (
string)$match) === 0) {
58 $this->secureUrlsCache[
$url] =
true;
63 return $this->secureUrlsCache[
$url];
__construct($secureUrlList=[], $excludedUrlList=[])