ContentSecurityPolicyDirective

Evaluates a Content-Security-Policy HTTP header.

Internal

should only be used from within TYPO3 Core

Table of Contents

Constants

RULE_PATTERN  = '#(?:\'(?<instruction>[^\']+)\')|(?<source>[^\s]+)#'

Properties

$instructions  : array<string|int, string>
$name  : string
$sources  : array<string|int, string>

Methods

__construct()  : mixed
getInstructions()  : array<string|int, string>
getName()  : string
getSources()  : array<string|int, string>
hasInstructions()  : bool

Constants

RULE_PATTERN

protected mixed RULE_PATTERN = '#(?:\'(?<instruction>[^\']+)\')|(?<source>[^\s]+)#'

Properties

$instructions

protected array<string|int, string> $instructions = []

$sources

protected array<string|int, string> $sources = []

Methods

__construct()

public __construct(string $name, string $rule) : mixed
Parameters
$name : string
$rule : string

getInstructions()

public getInstructions() : array<string|int, string>
Return values
array<string|int, string>

getName()

public getName() : string
Return values
string

getSources()

public getSources() : array<string|int, string>
Return values
array<string|int, string>

hasInstructions()

public hasInstructions(string ...$instructions) : bool
Parameters
$instructions : string
Return values
bool

        
On this page

Search results