DispositionConfiguration
Read onlyYes
Represents a `csp.yaml` site configuration section for the disposition modes `enforce` and `report.
Table of Contents
Properties
- $includeResolutions : bool
- $inheritDefault : bool
- $mutations : array<string|int, mixed>
- $packages : array<string, bool>
- $reportingUrl : bool|string|null
Methods
- __construct() : mixed
- normalizeReportingUrl() : bool|string|null
- resolveEffectivePackages() : array<string|int, mixed>
Properties
$includeResolutions
public
bool
$includeResolutions
$inheritDefault
public
bool
$inheritDefault
$mutations
public
array<string|int, mixed>
$mutations
= []
$packages
public
array<string, bool>
$packages
= []
$reportingUrl
public
bool|string|null
$reportingUrl
Methods
__construct()
public
__construct(bool $inheritDefault, bool $includeResolutions, mixed $reportingUrl[, array<string|int, mixed> $mutations = [] ][, array<string|int, mixed> $packages = [] ]) : mixed
Parameters
- $inheritDefault : bool
- $includeResolutions : bool
- $reportingUrl : mixed
- $mutations : array<string|int, mixed> = []
- $packages : array<string|int, mixed> = []
normalizeReportingUrl()
public
static normalizeReportingUrl(mixed $reportingUrl) : bool|string|null
Parameters
- $reportingUrl : mixed
Return values
bool|string|nullresolveEffectivePackages()
public
resolveEffectivePackages(string ...$packageNames) : array<string|int, mixed>
Parameters
- $packageNames : string