Definition at line 10 of file SecurityInfo.php.
◆ __construct()
__construct |
( |
|
$secureUrlList = [] , |
|
|
|
$excludedUrlList = [] |
|
) |
| |
- Parameters
-
string[] | $secureUrlList |
string[] | $excludedUrlList |
Definition at line 35 of file SecurityInfo.php.
37 $this->secureUrlsList = $secureUrlList;
38 $this->excludedUrlsList = $excludedUrlList;
◆ isSecure()
Check whether url is secure
- Parameters
-
- Returns
- bool
Implements SecurityInfoInterface.
Definition at line 47 of file SecurityInfo.php.
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];
◆ $excludedUrlsList
List of patterns excluded form secure url list
Definition at line 22 of file SecurityInfo.php.
◆ $secureUrlsCache
◆ $secureUrlsList
The documentation for this class was generated from the following file: