ContentSecurityPolicyDirective

Evaluates a Content-Security-Policy HTTP header.

Internal

should only be used from within TYPO3 Core

Table of Contents

Constants

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

Properties

$instructions  : string[]
$name  : string
$sources  : string[]

Methods

__construct()  : mixed
getInstructions()  : string[]
getName()  : string
getSources()  : string[]
hasInstructions()  : bool

Constants

RULE_PATTERN

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

Properties

$instructions

protected string[] $instructions = []

Methods

__construct()

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

getInstructions()

public getInstructions() : string[]
Return values
string[]

getName()

public getName() : string
Return values
string

getSources()

public getSources() : string[]
Return values
string[]

hasInstructions()

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

Search results